TheRealCDay / raptor-chess-interface

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

Move issue #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've been getting move errors a lot recently and it is costing me quite a lot 
of games

Issue: ficsConnector Error in DaemonRun.onNewInput java.lang.RuntimeException: 
Error occured 
parsing message: <12> -------- --k-p-Kr -p-pP-P- p------- -bp----- -------- 
-----
--- -nB----- W -1 0 0 0 0 2 50 mastertan SashaMx 1 1 0 5 16 -345 10072 55 
R/h3-h7 
(0:00.312) Rh7+ 0 1 0 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 Rh7+ emptyBB occupiedBB notColorToMoveBB color[WHITE] color[BLACK] 1 1 1 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 0 1 0 1 0 1 0 0 
1 0 1 0 1 0 1 1 0 1 0 1 
1 1 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 
1 1 0 0 0 0 1 0 1 0 0 1 
0 1 0 0 0 0 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 1 0 0 1 1 1 
1 1 0 1 1 0 0 0 0 0 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 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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castle: - |p|*|*|*|*|*|*|*| FEN: 8/2k1p1K1/1p1pP1P1/p7/1bp5/7r/8/1nB5 b - - 1 
107 
|*|b|p|*|*|*|*|*| State: 3145 Variant=classic Result=* |*|*|*|*|*|*|*|r| Event: 
1 0 rated lightning 
Site=freechess.org Date=2009.11.05 |*|*|*|*|*|*|*|*| WhiteName: mastertan 
BlackName=SashaMx WhiteTime=2909 whiteLag=13054 blackRemainingTImeMillis = 
10384 
blackLag=34583 |*|n|B|*|*|*|*|*| initialWhiteClock: 00:01:00.0 
initialBlackClocks=00:01:00.0 
Legals=[Nd2, Na3, Nc3, Be1, Bd2, Ba3, Bc3, Bc5, Rh1, Rh2, Ra3, Rb3, Rc3, Rd3, 
Re3, Rf3, Rg3, 
Rh4, Rh5, c3, a4, b5, d5, Kc6, Kb7, Kb8, Kc8, Kd8] Movelist=[d4, g6, e3, Bg7, 
Bd3, b6, f4, Bb7, 
Nf3, Bxf3, O-O, Bxd1, Rxd1, Nc6, c4, Nb4, Be2, Nc2, Nc3, Nxa1, Bd2, Nc2, Bd3, 
Nb4, Bb1, c5, 
a3, Nc6, d5, Nb8, Ne2, Bxb2, e4, Bxa3, e5, Bb4, Be3, d6, e6, fxe6, dxe6, Qc8, 
Be4, Nc6, f5, gxf5, 
Bxf5, Nf6, Nf4, Qa6, Bd3, O-O-O, Nd5, Nxd5, cxd5, Ne5, Bxa6+, Kc7, Bb5, Rhf8, 
Bf2, a5, g3, 
Rf6, Kg2, Rdf8, Be3, Ng4, Bg1, Rf5, h3, Nh6, Be3, Ng8, g4, Re5, Bf2, Rf4, Bg3, 
Re2+, Bxe2, Rd4, 
Ra1, Rd2, Rb1, Rxe2+, Kf3, Rd2, Bf4, Rd3+, Ke4, c4, Bc1, Nf6+, Kf5, Nxd5, g5, 
Rf3+, Kg4, h5+, 
Kxh5, Nc3, Kh6, Nxb1, g6, Rxh3+, Kg7] 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

Sometimes the pieces just disappear off the board, sometimes you can't move a 
piece and a 
couple other variations.

This really needs to be fixed for the next release.

I think I put up an issue on this earlier on but I couldn't find it. Sorry cday.

Original issue reported on code.google.com by DPXTan@gmail.com on 4 Nov 2009 at 10:01

GoogleCodeExporter commented 9 years ago
You have you put up two of them. You were the one who found the nasty enpassant 
bug I have fixed. Raptor 
uses bit boards and stores the state of the games. This is mostly to get the 
legal move validation solid for the 
pgn parsing and eventually an analysis engine that works across variants. 

I think this was related to the enpassant rollback bug I fixed. 

I have also seen a piece that wouldnt be removed from the board. It ws a rook 
on h8 after taking a rook on h1. 
The rook stayed on h8. I a working on tracking that one down, and I think that 
is the other issue you mentioned.

Original comment by carsonday on 4 Nov 2009 at 10:26

GoogleCodeExporter commented 9 years ago
I am going to close it unless it occurs in beta. I think its fixed.

Original comment by carsonday on 5 Nov 2009 at 6:27

GoogleCodeExporter commented 9 years ago

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