summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2022-01-21 17:20:17 -0500
committerRobby Zambito <contact@robbyzambito.me>2022-01-21 17:20:17 -0500
commitf1a4b5757f0d20739270b22726ebf8442b13cb50 (patch)
tree93e170ddebc79cf5a41777fc040797bc6dfa5d85 /cmd
parent3a85be307b6240525f032b9fad5114bdf172bdc1 (diff)
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.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/main.c1
1 files changed, 1 insertions, 0 deletions
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 <unistd.h>
#include "othello.h"
+#include "othello_board.h"
int main(int argc, char **argv) {
int exit_status = EXIT_SUCCESS;