Skip to content

Commit

Permalink
#492 added some more input checks while we are at it
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Maeder committed May 20, 2024
1 parent ad7fe77 commit 0ba54dd
Show file tree
Hide file tree
Showing 11 changed files with 1,219 additions and 1,419 deletions.
29 changes: 28 additions & 1 deletion REGRESSIONS/4_89_to_4_91.inp
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,32 @@ Pieces Black Og4 White sc8 ke7
condition make&take
option nowk nobk

End
next

pieces white ka1 se5 black kb3 rb8
stipulation s#3
condition imitator a7b7c7d7e7f7g7h7g8h8f8e8
option vari nothreat

next

pieces ka1
stip ~1
option enpassant a5b5c5d5e5

next

pieces white ka1 se5 black kb3 rb8
stipulation s#3
condition blackmindister e5b8a1
option vari nothreat

next

pieces white ka1 se5 black kb3 rb8
stipulation s#3
condition blackmindister e5e5
option vari nothreat

end

137 changes: 137 additions & 0 deletions REGRESSIONTESTS/4_89_to_4_91.reg
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,140 @@ clarification of Orphan + Make&Take - the wK "makes" like a black Orphan when it
solution finished.


input-error:too many imitators
offending item: a7b7c7d7e7f7g7h7g8h8f8e8


+---a---b---c---d---e---f---g---h---+
| |
8 . -R . . . . I I 8
| |
7 I I I I I I I I 7
| |
6 . . . . . . . . 6
| |
5 . . . . S . . . 5
| |
4 . . . . . . . . 4
| |
3 . -K . . . . . . 3
| |
2 . . . . . . . . 2
| |
1 K . . . . . . . 1
| |
+---a---b---c---d---e---f---g---h---+
s#3 2 + 2
Imitator a7 b7 c7 d7 e7 f7 g7 h7 g8 h8

add_to_move_generation_stack: 11
play_move: 0
is_white_king_square_attacked: 0
is_black_king_square_attacked: 1

solution finished.


input-error:no color specified - all specification input ignored
offending item: ka1
input-error:offending item: ka1
offending item: ka1
Not more than 2 squares can be input for en passant keys.


+---a---b---c---d---e---f---g---h---+
| |
8 . . . . . . . . 8
| |
7 . . . . . . . . 7
| |
6 . . . . . . . . 6
| |
5 . . . . . . . . 5
| |
4 . . . . . . . . 4
| |
3 . . . . . . . . 3
| |
2 . . . . . . . . 2
| |
1 . . . . . . . . 1
| |
+---a---b---c---d---e---f---g---h---+
~1 0 + 0
both sides need a king
Inconsistent retro information

problem ignored
add_to_move_generation_stack: 0
play_move: 0
is_white_king_square_attacked: 0
is_black_king_square_attacked: 0

solution finished.


Exactly 2 dister reference squares have to be indicated


+---a---b---c---d---e---f---g---h---+
| |
8 . -R . . . . . . 8
| |
7 . . . . . . . . 7
| |
6 . . . . . . . . 6
| |
5 . . . . S . . . 5
| |
4 . . . . . . . . 4
| |
3 . -K . . . . . . 3
| |
2 . . . . . . . . 2
| |
1 K . . . . . . . 1
| |
+---a---b---c---d---e---f---g---h---+
s#3 2 + 2

add_to_move_generation_stack: 3322
play_move: 2224
is_white_king_square_attacked: 2053
is_black_king_square_attacked: 375

solution finished.


Exactly 2 dister reference squares have to be indicated


+---a---b---c---d---e---f---g---h---+
| |
8 . -R . . . . . . 8
| |
7 . . . . . . . . 7
| |
6 . . . . . . . . 6
| |
5 . . . . S . . . 5
| |
4 . . . . . . . . 4
| |
3 . -K . . . . . . 3
| |
2 . . . . . . . . 2
| |
1 K . . . . . . . 1
| |
+---a---b---c---d---e---f---g---h---+
s#3 2 + 2

add_to_move_generation_stack: 3322
play_move: 2224
is_white_king_square_attacked: 2053
is_black_king_square_attacked: 375

solution finished.


Loading

0 comments on commit 0ba54dd

Please sign in to comment.