summaryrefslogtreecommitdiffstats
path: root/board.c
diff options
context:
space:
mode:
authorMr. Sam <samuel@yakubos.org>2026-07-20 22:58:53 +0100
committerMr. Sam <samuel@yakubos.org>2026-07-20 22:58:53 +0100
commit2824d08a2ad63c572b7b993ceed8843378d4bf20 (patch)
treedff536a8e5a24ec28a469cfc4bafaf9b91c1d0a8 /board.c
parent499d80c70df540d67486d78325e9d5e00dd760bb (diff)
change colors, show hand, add some logic to piece movement.
Diffstat (limited to 'board.c')
-rw-r--r--board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board.c b/board.c
index a4faad3..b14f225 100644
--- a/board.c
+++ b/board.c
@@ -41,8 +41,8 @@ void PrintBoard(char board[8][8]){
}
attron(A_BOLD | COLOR_PAIR(4));
- if ( i == 1) printw(" BLACK ");
- if ( i == 6) printw(" WHITE ");
+ if ( i == 1) printw(" HAND: %d ", hand);
+ if ( i == 6) printw(" POSITION: %d ", board[cursorPosX][cursorPosY]);
attroff(A_BOLD | COLOR_PAIR(4));
printw("\n");
}