tictactoe

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 922dc04cd96a6d0613446013c53284169b006b10
parent e87c3093770a76d8d3410bff487b6639c4ecfc1c
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date:   Sat, 24 Dec 2022 07:47:34 -0600

Add print_box.h to this repo and remove unused variable from print_box_offset

Diffstat:
Aprint_box.h | 2++
Mtictactoe.c | 4++--
Mtictactoe.h | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/print_box.h b/print_box.h @@ -0,0 +1 @@ +../life/print_box.h +\ No newline at end of file diff --git a/tictactoe.c b/tictactoe.c @@ -7,10 +7,10 @@ typedef char (*Get_move_fn)(char*, char); -static void print_board_offset(char *board, int offx, int offy, int clear) { +static void print_board_offset(char *board, int offx, int offy, _Bool clear) { #ifndef DEBUG if(clear) tb_clear(); - print_box_offset(7, 7, offx, offy, 0); + print_box_offset(7, 7, offx, offy); for(int i=0; i < 9; i++) { print_bw(((i%3) * 2) + 2 + offx, (i/3*2) + 2 + offy, board[i]); } diff --git a/tictactoe.h b/tictactoe.h @@ -3,7 +3,7 @@ #include <string.h> #include <time.h> -#include "../life/print_box.h" +#include "./print_box.h" #define SCRATCH_BOARD "XXOOOXXOX" #define X_WINS_COLUMN "XXOXOOXOX"