diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-16 21:10:17 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-16 21:10:17 +0100 |
commit | 91dc85bdb295d3bad1b6c86f4437b401d25c04a3 (patch) | |
tree | de5afe2fb7899625396fa048099fe05c7db77b13 /FICS/movecheck.c | |
parent | a35f58a4cc3acd8e4c89b6de0a334510dbbc1709 (diff) |
Deleted disabled code
Diffstat (limited to 'FICS/movecheck.c')
-rw-r--r-- | FICS/movecheck.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/FICS/movecheck.c b/FICS/movecheck.c index dcae95c..adaa989 100644 --- a/FICS/movecheck.c +++ b/FICS/movecheck.c @@ -291,24 +291,6 @@ PRIVATE int is_square_attacked (game_state_t *gs, int kf, int kr) else return 0; } -/* old one: -PRIVATE int is_square_attacked(game_state_t * gs, int kf, int kr) -{ - int f, r; - gs->onMove = CToggle(gs->onMove); - - for (InitPieceLoop(gs->board, &f, &r, gs->onMove); - NextPieceLoop(gs->board, &f, &r, gs->onMove);) { - if (legal_move(gs, f, r, kf, kr)) { - gs->onMove = CToggle(gs->onMove); - return 1; - } - } - gs->onMove = CToggle(gs->onMove); - return 0; -} -*/ - PRIVATE int legal_king_move(game_state_t * gs, int ff, int fr, int tf, int tr) { if (gs->onMove == WHITE) { |