amitkumar3968 / raptor-chess-interface

Automatically exported from code.google.com/p/raptor-chess-interface
0 stars 0 forks source link

Illegal move #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried playing a legal move, but it wasn't registering. I had to type in the 
move. This is what 
happened when I did.

Critical error occured! We are trying to make Raptor bug free and we need your 
help! Please take 
a moment to report this error at 
http://code.google.com/p/raptor-chess-interface/issues/list 
Issue: ficsConnector Error in DaemonRun.onNewInput java.lang.RuntimeException: 
Error occured 
parsing message: <b1> game 192 white [PQ] black [PB] <- WQ <12> r-bQkb-r 
ppp--ppp ----
p--- -n--P--N ----pN-- -----p-- PPP----P RNB-K--R B -1 1 1 1 1 0 192 mastertan 
UndefeatedMonkey -1 2 0 46 32 36310 90363 14 Q/d1-d8 (0:38.206) Qxd8+ 0 1 190 
<b1> 
game 192 white [PQ] black [PB] fics%    at 
raptor.connector.ics.IcsConnector.parseMessage(IcsConnector.java:1341)  at 
raptor.connector.ics.IcsConnector.onNewInput(IcsConnector.java:1259)    at 
raptor.connector.ics.IcsConnector.messageLoop(IcsConnector.java:1133)   at 
raptor.connector.ics.IcsConnector$4$1.run(IcsConnector.java:1017)   at 
java.lang.Thread.run(Thread.java:637) Caused by: 
java.lang.IllegalArgumentException: Invalid 
move Qxd8+ emptyBB occupiedBB notColorToMoveBB color[WHITE] color[BLACK] 0 1 0 
0 0 0 1 0 1 
0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 0 1 1 1 1 0 1 0 0 0 1 1 0 0 0 1 
1 1 0 0 1 1 1 1 1 1 1 1 
1 1 1 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 1 1 1 1 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 1 
1 1 1 0 0 0 0 0 0 0 0 0 
0 0 0 1 0 0 0 1 0 1 0 0 1 1 0 0 1 0 1 1 0 0 1 1 1 1 1 0 1 1 0 0 0 0 0 1 0 0 1 0 
1 0 0 0 0 0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q|k|b|*|r| To Move: White Last Move: Nxb5 |p|p|p|*|*|p|p|p| Piece counts 
[WP=5 WN=3 
WB=1 WR=2 WQ=1 WK=1][BP=9 BN= 1 BB=2 BR=2 BQ=1 BK=1] |*|*|*|*|p|*|*|*| Moves: 
26 EP: - 
Castle: KQkq |*|n|*|*|P|*|*|N| FEN: 
r1bqkb1r/ppp2ppp/4p3/1n2P2N/4pN2/5p2/PPP4P/RNBQK2R 
w KQkq - 0 26 |*|*|*|*|p|N|*|*| State: 3177 Variant=crazyhouse Result=* 
|*|*|*|*|*|p|*|*| Event: 2 
0 rated crazyhouse Site=freechess.org Date=2009.10.31 |P|P|P|*|*|*|*|P| 
WhiteName: mastertan 
BlackName=UndefeatedMonkey WhiteTime=74516 whiteLag=2657 
blackRemainingTImeMillis = 
90363 blackLag=1176 |R|N|B|Q|K|*|*|R| initialWhiteClock: 00:02:00.0 
initialBlackClocks=00:02:00.0 Legals=[Qd2, Qe2, Qd3, Qd4, Qd5, Nd2, Na3, Nc3, 
Ne2, Ng2, 
Nd3, Nh3, Nd5, Ng6, Ng3, Nf6, Bd2, Be3, Rf1, Rg1, a3, a4, b3, b4, c3, c4, h3, 
h4, O-O, Kf1, 
Kd2, Kf2, P@d2, P@e2, P@f2, P@g2, P@a3, P@b3, P@c3, P@d3, P@e3, P@g3, P@h3, 
P@a4, P@b4, 
P@c4, P@d4, P@g4, P@h4, P@a5, P@c5, P@f5, P@g5, P@a6, P@b6, P@c6, P@d6, P@f6, 
P@g6, 
P@h6, P@d7, P@e7, Q@f1, Q@g1, Q@d2, Q@e2, Q@f2, Q@g2, Q@a3, Q@b3, Q@c3, Q@d3, 
Q@e3, Q@g3, Q@h3, Q@a4, Q@b4, Q@c4, Q@d4, Q@g4, Q@h4, Q@a5, Q@c5, Q@f5, Q@g5, 
Q@a6, Q@b6, Q@c6, Q@d6, Q@f6, Q@g6, Q@h6, Q@d7, Q@e7, Q@b8, Q@g8, Qxf3, Nxe6, 
Nxg7] Movelist=[e4, Nf6, e5, Ne4, d3, Nc5, d4, Ne4, f3, d5, fxe4, dxe4, Bc4, 
e6, N@h5, Nc6, 
Ne2, P@f3, Nef4, fxg2, Nxg2, P@f3, Ngf4, Nxd4, Bb5+, Nxb5] Squares with promote 
masks: [] 
Drop counts [WP=1 WN=0 WB=0 WR=0 WQ=1 WK=0][BP=1 BN= 0 BB=1 BR=0 BQ=0 BK=0]     at 
raptor.chess.ClassicGame.testForSanDisambiguationFromCheck(ClassicGame.java:2409
)   at 
raptor.chess.ClassicGame.makeSanMove(ClassicGame.java:914)  at 
raptor.connector.ics.IcsUtils.addCurrentMove(IcsUtils.java:117)     at 
raptor.connector.ics.IcsParser.process(IcsParser.java:526)  at 
raptor.connector.ics.IcsParser.parseGameEvents(IcsParser.java:245)  at 
raptor.connector.ics.IcsParser.parse(IcsParser.java:164)    at 
raptor.connector.ics.IcsConnector.parseMessage(IcsConnector.java:1339)  ... 4 
more

Original issue reported on code.google.com by masterta...@gmail.com on 31 Oct 2009 at 4:49

GoogleCodeExporter commented 9 years ago
This is an error in move validation. Whoever winds up working on this can 
recreate it fom the move list in the 
above output.

Original comment by carsonday on 31 Oct 2009 at 1:42

GoogleCodeExporter commented 9 years ago

Original comment by carsonday on 31 Oct 2009 at 1:42

GoogleCodeExporter commented 9 years ago
This really needs to be fixed. It's happened quite a few times. This is what 
appeared when i had to type the 
move.

Issue: ficsConnector Error in DaemonRun.onNewInput java.lang.RuntimeException: 
Error occured parsing 
message: <12> --r---k- -----qpp --P-p--- -P-p---- pp-PbPQ- ----P--- ----R-pP 
--R---K- W -1 
0 0 0 0 0 65 jrodriguez mastertan -1 3 0 25 24 77095 10104 31 P/a5-a4 
(0:22.629) a4 1 1 182 fics%     at 
raptor.connector.ics.IcsConnector.parseMessage(IcsConnector.java:1341)  at 
raptor.connector.ics.IcsConnector.onNewInput(IcsConnector.java:1259)    at 
raptor.connector.ics.IcsConnector.messageLoop(IcsConnector.java:1133)   at 
raptor.connector.ics.IcsConnector$4$1.run(IcsConnector.java:1017)   at 
java.lang.Thread.run(Thread.java:637) Caused by: 
java.lang.IllegalArgumentException: Invalid move a4 
emptyBB occupiedBB notColorToMoveBB color[WHITE] color[BLACK] 1 1 0 1 1 1 0 1 0 
0 1 0 0 0 1 0 1 1 0 1 1 1 0 
1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 
0 1 0 1 1 1 0 0 1 0 1 0 0 0 1 1 1 1 0 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 
1 0 1 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 1 
1 1 1 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 0 1 0 1 1 0 
1 1 1 0 0 0 1 0 1 1 0 0 1 0 0 1 0 0 0 
1 1 1 1 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 
1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 
1 1 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 1 1 0 1 1 1 0 1 0 0 1 0 0 0 1 0 1 1 1 
1 1 1 1 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 
0 0 [WHITE][PAWN] [WHITE][KNIGHT] [WHITE][BISHOP] [WHITE][ROOK] [WHITE][QUEEN] 
[WHITE][KING] 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 |*|*|r|*|*|*|k|*| To 
Move: Black Last Move: axb5 |*|*|*|*|*|q|p|p| Piece counts [WP=6 WN=0 WB=0 WR=2 
WQ=1 WK=1][BP=7 BN= 
0 BB=1 BR=1 BQ=1 BK=1] |*|*|P|*|p|*|*|*| Moves: 59 EP: - Castle: - 
|p|P|*|p|*|*|*|*| FEN: 
2r3k1/5qpp/2P1p3/pP1p4/1p1PbPQ1/4P3/4R1pP/2R3K1 b - - 0 59 |*|p|*|P|b|P|Q|*| 
State: 3145 
Variant=classic Result=* |*|*|*|*|P|*|*|*| Event: 3 0 rated blitz 
Site=freechess.org Date=2009.11.02 
|*|*|*|*|R|*|p|P| WhiteName: jrodriguez BlackName=mastertan WhiteTime=77095 
whiteLag=4720 
blackRemainingTImeMillis = 32733 blackLag=5458 |*|*|R|*|*|*|K|*| 
initialWhiteClock: 00:03:00.0 
initialBlackClocks=00:03:00.0 Legals=[Qf5, Qh5, Qf6, Qg6, Qa7, Qb7, Qc7, Qd7, 
Qe7, Qe8, Qf8, Bb1, Bc2, 
Bd3, Bf3, Bf5, Bg6, Rc7, Ra8, Rb8, Rd8, Re8, Rf8, b3, e5, g6, g5, h6, h5, Kf8, 
Kh8, Qxf4, Rxc6] Movelist=[Nf3, 
d5, e3, c5, c3, Nc6, Be2, Bf5, d3, Nf6, O-O, e6, Bd2, Bd6, Na3, a6, c4, O-O, 
b4, Nxb4, Bxb4, cxb4, Nc2, a5, 
Nfd4, Bg6, Nb5, Be5, d4, Bc7, c5, Rc8, Ne1, Qd7, a4, Rfe8, Nf3, Ne4, Bd3, f5, 
Bxe4, fxe4, Nxc7, exf3, Nxe8, 
fxg2, Re1, Rxe8, Qg4, Qf7, f4, Be4, Rac1, Rc8, Re2, b6, c6, b5, axb5] Squares 
with promote masks: []  at 
raptor.chess.ClassicGame.testForSanDisambiguationFromCheck(ClassicGame.java:2409
)   at 
raptor.chess.ClassicGame.makeSanMove(ClassicGame.java:914)  at 
raptor.connector.ics.IcsUtils.addCurrentMove(IcsUtils.java:117)     at 
raptor.connector.ics.IcsParser.process(IcsParser.java:526)  at 
raptor.connector.ics.IcsParser.parseGameEvents(IcsParser.java:245)  at 
raptor.connector.ics.IcsParser.parse(IcsParser.java:164)    at 
raptor.connector.ics.IcsConnector.parseMessage(IcsConnector.java:1339)  ... 4 
more

 There was also a time where I didn't see one of my opponent's pieces.

Original comment by DPXTan@gmail.com on 2 Nov 2009 at 6:35

GoogleCodeExporter commented 9 years ago
Fixed in r558. There was a bug rolling back enpassant in the bit boards.

Original comment by carsonday on 3 Nov 2009 at 6:49

GoogleCodeExporter commented 9 years ago

Original comment by carsonday on 6 Nov 2009 at 7:59