diff options
author | Robby Zambito <contact@robbyzambito.me> | 2021-07-25 23:52:42 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2021-07-25 23:52:42 -0400 |
commit | 0642443e690b879e94b627597f624d5fd56db33d (patch) | |
tree | e521d2f1d8671e5204b68f3f9c5f131cc5fefe71 /cmd | |
parent | f590189d63bac985c2738c63fc79a03f6ced1126 (diff) |
Return player_color from game_loop rather than char.
The player_color type already is set to char, but this is a bit clearer
as to what the actual return values are
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9,7 +9,7 @@ int main(int argc, char **argv) { player_color board[8][8]; initialize_board(board); - char winner = game_loop(board); + player_color winner = game_loop(board); switch (winner) { case WHITE: |