diff options
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -67,6 +67,14 @@ void printpieces(struct piece** hand, int y, int x, int nhand, int highlight) { refresh(); } +void printstats(int points, int combo, int y, int x) { + mvprintw(y, x, "Points: %d", points); + if (combo) + mvprintw(y + 1, x, "Combo: %d", combo); + + refresh(); +} + void printhelp(int y, int x) { mvprintw(y, x, "Press arrow keys / wasd / hjkl to navigate"); mvprintw(y + 1, x, "[ or ] to switch pieces"); |