diff options
author | Ivan Davydov <lotigara@lotigara.ru> | 2025-04-07 00:05:46 +0300 |
---|---|---|
committer | Ivan Davydov <lotigara@lotigara.ru> | 2025-04-07 00:13:53 +0300 |
commit | 0e42930b25a69fd794fe625f63e3bc10d3ca76d4 (patch) | |
tree | e87e94adb7d54a21ec5d8d6de4c171bb50b1d654 /clicker-ncurses.h | |
parent | 25c4c8427f6c4ff1ad99141c6321b1395a8fb3fb (diff) |
Major changes to code readability and balance
Use curses instead of ncurses
Make game harder to play, see source code for changes
Print score normally (not like in implementations of classic vi)
Run free() right before the end the program (valgrind still complains)
Remove unnecessary get_* and set_* functions and refer to structure members directly
Diffstat (limited to 'clicker-ncurses.h')
-rw-r--r-- | clicker-ncurses.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clicker-ncurses.h b/clicker-ncurses.h index b7c97c2..cbaf969 100644 --- a/clicker-ncurses.h +++ b/clicker-ncurses.h @@ -5,10 +5,4 @@ struct game int score; }; -int get_score (struct game *game); void set_score (struct game *game, int score); - -int get_click (struct game *game); -void set_click (struct game *game, int click); - -int get_multiplifier (struct game *game); |