From c5c54396bdf8ef14c17a0bc5b8f0fda74aa958cf Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Tue, 18 Jan 2022 22:37:04 -0500 Subject: * Made print_board accept a board to print. * free_board should not return anything. * is_valid_move and has_valid_moves accept a board. * Implemented primitives for Scheme strategies to get the current player, and to get the board, and the validity of a move. * Removed game logic from is_valid_move. Instead simply apply the move to a temp board, and see if the move worked. * Created a very simple strategy for testing these primitives. It only hardcodes the first move, and then fails since that move is no longer valid. --- cmd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/main.c b/cmd/main.c index d87be49..33cfcad 100644 --- a/cmd/main.c +++ b/cmd/main.c @@ -97,7 +97,7 @@ int main(int argc, char **argv) { } puts("Here was the final board:"); - print_board(); + print_board(get_board()); return EXIT_SUCCESS; } -- cgit v1.2.3