diff options
author | Raúl Benencia <rul@kalgan.cc> | 2015-03-31 15:54:15 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2015-03-31 15:54:15 -0300 |
commit | 73857333f872ec5a1d32dbd522d8a7d6f2625fac (patch) | |
tree | 8abd25c9b8ecbfd88304637c050c2dd84d76a0bd /include/game.h | |
parent | be51176891684e40c9949d89622497d8235cfb5c (diff) |
define game_is_checkmate(Board, Color)
Diffstat (limited to 'include/game.h')
-rw-r--r-- | include/game.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/game.h b/include/game.h index 61239e7..5ab589b 100644 --- a/include/game.h +++ b/include/game.h @@ -8,4 +8,9 @@ */ Board game_loop(Board); +/* + * Return 1 if the received player is checkmated. Returns 0 otherwise. + */ +int game_is_checkmate(Board board, Color color); + #endif |