summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 70bfe5c..1df1a33 100644
--- a/ui.c
+++ b/ui.c
@@ -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");