diff options
author | Robby Zambito <contact@robbyzambito.me> | 2022-01-21 17:20:17 -0500 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2022-01-21 17:20:17 -0500 |
commit | f1a4b5757f0d20739270b22726ebf8442b13cb50 (patch) | |
tree | 93e170ddebc79cf5a41777fc040797bc6dfa5d85 /cmd | |
parent | 3a85be307b6240525f032b9fad5114bdf172bdc1 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |