From bb18d227817346c04b7e82c820f5f623405098a0 Mon Sep 17 00:00:00 2001 From: Nicholas Hayashi Date: Sat, 28 Nov 2020 19:43:22 -0500 Subject: [PATCH] gitignore --- .gitignore | 2 ++ src/main.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe7a0ed --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +out +out.dSYM/ diff --git a/src/main.c b/src/main.c index 60690f0..910f188 100644 --- a/src/main.c +++ b/src/main.c @@ -173,7 +173,7 @@ int handle_move(char in[6]) { int target_position_file = file_to_board_index(in[3]); square* source = board[source_position_rank][source_position_file]; - square* target = board[target_position_rank][target_position_file]; + // square* target = board[target_position_rank][target_position_file]; if (source == NULL) { return -3; @@ -190,9 +190,10 @@ int main(void) { char in[6]; do { + printf("\e[2J\e[;H\n\n"); draw_board_unicode(); - printf("\n"); + printf("\n\tmake moves by typing them in coordinate notation ('e2e4', for example)\n\ttype 'help' for options.\n\n\t\t"); if (fgets(in, 6, stdin) == NULL) { return 1;