it's getting over the top of my head :(
This commit is contained in:
+6
-5
@@ -137,10 +137,11 @@ bool is_none(board_t board, pos_t pos) {
|
||||
return board[pos.y][pos.x] == NONE;
|
||||
}
|
||||
|
||||
// the move can be:
|
||||
// 1. legal x illegal
|
||||
// 2. the 'to' pos could be occupied x non-occupied
|
||||
// 2a. it could be capturable x non-capturable
|
||||
/** the move can be:
|
||||
* 1. legal x illegal
|
||||
* 2. the 'to' pos could be occupied x non-occupied
|
||||
* 2a. it could be capturable x non-capturable
|
||||
*/
|
||||
bool validate_move(board_t board, move_t move) {
|
||||
bool none = is_none(board, move.to);
|
||||
bool move_legal = is_move_legal(move);
|
||||
@@ -165,7 +166,7 @@ bool perform_move(board_t *board, player_e player, move_t move) {
|
||||
}
|
||||
|
||||
end_condition_e check_edge_cases(board_t board) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
void announce_results(end_condition_e end_condition, player_e player) {
|
||||
|
||||
Reference in New Issue
Block a user