brainix / gray-matter

Automatically exported from code.google.com/p/gray-matter
0 stars 0 forks source link

Set_board_fen problem #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found out something funny ;)
I have to FEN strings, say fen1 and fen2.
Sequence "setboard fen1 ; setboard fen2" fails.
Sequence "setboard fen2 ; setboard fen1" is (more or less) ok.

So, Gray thinks OFF_MOVE's king is in check in the faulty sequence.
And that while at start of set_board_fen the board is cleared...
I'm puzzled (but I like puzzles).

setboard 2bq3k/2p4p/p2p4/7P/1nBPPQP1/r1p5/8/1K1R2R1 b - -
setboard 3r1rk1/1p3pnp/p3pBp1/1qPpP3/1P1P2R1/P2Q3R/6PP/6K1 w - -
# Debug: Faulty FEN: '3r1rk1/1p3pnp/p3pBp1/1qPpP3/1P1P2R1/P2Q3R/6PP/6K1 w - -'
# Debug: Location: (8, 0)
# Debug: Reason: The player off move cannot be in check.
tellusererror Illegal position

Original issue reported on code.google.com by jonne.z...@gmail.com on 7 Dec 2007 at 8:45

GoogleCodeExporter commented 9 years ago
Hmm, puzzle was too easy.
init_rotation() was called after the check for check.
I'll commit it.

Original comment by jonne.z...@gmail.com on 7 Dec 2007 at 9:35

GoogleCodeExporter commented 9 years ago

Original comment by brainix on 31 Jan 2008 at 9:30