Use alternate screen

master
Elias Fleckenstein 2021-06-07 12:51:08 +02:00
parent e5101d5e34
commit 490ac5f066
1 changed files with 2 additions and 0 deletions

2
main.c
View File

@ -39,10 +39,12 @@ void init_board(board *b) {
}
void game_start() {
printf("\e[?1049h");
board *b = new_board();
game_loop(b);
print_score(b);
free_board(b);
printf("\e[?1049l");
}
void game_loop(board *b) {