From f1a4b5757f0d20739270b22726ebf8442b13cb50 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Fri, 21 Jan 2022 17:20:17 -0500 Subject: Fleshed out Scheme primitives * Moved board specific functions from othello.h to new othello_board.h * Removed unused function pointer for player moves * Added prototypes in headers for SCM functions, including scm_get_current_player, * Made get_winner accept a board and current player. This is useful for predictions to see if some move would make the other player a winner. * get_winner also writes the players scores to provided pointers. --- cmd/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/main.c') diff --git a/cmd/main.c b/cmd/main.c index 33cfcad..12d7f3a 100644 --- a/cmd/main.c +++ b/cmd/main.c @@ -28,6 +28,7 @@ #include #include "othello.h" +#include "othello_board.h" int main(int argc, char **argv) { int exit_status = EXIT_SUCCESS; -- cgit v1.2.3