Update main.c

This commit is contained in:
begilbert-sys 2024-01-16 23:31:36 -08:00 committed by GitHub
parent 59be269502
commit 82a97d131c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
main.c
View file

@ -119,7 +119,11 @@ void display_board() {
move(i * 4 + 2, j * 8 + 1); move(i * 4 + 2, j * 8 + 1);
addstr(" "); addstr(" ");
move(i * 4 + 3, j * 8 + 1); move(i * 4 + 3, j * 8 + 1);
_addstr_centered(tile_value); if (tile_value == BLANK) {
addstr(" ");
} else {
_addstr_centered(tile_value);
}
move(i * 4 + 4, j * 8 + 1); move(i * 4 + 4, j * 8 + 1);
addstr(" "); addstr(" ");
} }