TheRealCDay / raptor-chess-interface

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

Invalid move #266

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Observe LectureBot ("Tactics Training lesson 4: 'King in the centre'")

What is the expected output? What do you see instead?
Following error message was displayed in console.
----
LectureBot(TD)(----)[1] kibitzes: Example 2: Filipowics vs Skrobek, 1975 
LectureBot(TD)(----)[1] kibitzes: White threatens BxBg7 followed by Qxh7+. How 
did Black 
reverse the situation? 
LectureBot(TD)(----)[1] kibitzes: 75 seconds... 
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: 
<12> -----rk- p--bp-bp ---p--pB -------- --pNn-P- --P--P-- PqPK---Q R------R W 
-1 0 0 0 0 0 1 Filipowics Skrobek -2 0 0 15 15 0 0 2 N/f6-e4 
(0:00.000) Nxe4+ 0 0 0 
fics%
    at raptor.connector.ics.IcsConnector.parseMessage(IcsConnector.java:1552)
    at raptor.connector.ics.IcsConnector.onNewInput(IcsConnector.java:1469)
    at raptor.connector.ics.IcsConnector.messageLoop(IcsConnector.java:1343)
    at raptor.connector.ics.IcsConnector$4$1.run(IcsConnector.java:1227)
    at java.lang.Thread.run(Thread.java:637)
 Caused by: java.lang.IllegalArgumentException: Invalid move Nxe4+
 emptyBB occupiedBB notColorToMoveBB color[WHITE] color[BLACK]
 1 1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1 1 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 0 1 0 0 1 1 
0 1 1 0 1 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 1 0 0 
0 1 0 1 1 0 1 1 1 1 1 0 
0 0 0 0 0 1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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|*|*|r| To Move: Black Last Move: exf6
 |*|*|p|n|*|p|p|*| Piece counts [WP=6 WN=1 WB=1 WR=2 WQ=1 WK=1][BP=6 BN= 1 BB=0 BR=2 
BQ=1 BK=1]
 |*|p|*|*|*|P|*|p| Moves: 1 EP: - Castle: -
 |p|*|*|*|*|P|*|*| FEN: 2r1k2r/2pn1pp1/1p3P1p/p4P2/4q2B/P1P5/2Q1N1PP/R4RK1 b - - 0 1
 |*|*|*|*|q|*|*|B| State: 3201 Variant=classic Result=*
 |P|*|P|*|*|*|*|*| Event: 0 0 unrated untimed Site=freechess.org Date=2009.11.17
 |*|*|Q|*|N|*|P|P| WhiteName: Lilienthal BlackName=Capablanca WhiteTime=0 whiteLag=0 
blackRemainingTImeMillis = 0 blackLag=0
 |R|*|*|*|*|R|K|*| initialWhiteClock: 00:00:00.0 initialBlackClocks=00:00:00.0

 Legals=[Qd3, Qe3, Qf3, Qa4, Qb4, Qc4, Qd4, Qf4, Qg4, Qd5, Qe5, Qc6, Qe6, Qb7, Qe7, Qa8, 
Nc5, Ne5, Nb8, Nf8, Ra8, Rb8, Rd8, Rh7, Rf8, Rg8, a4, b5, h5, c6, c5, g6, g5, 
Kd8, Kf8, Qxc2, 
Qxe2, Qxg2, Qxh4, Qxf5, Nxf6, gxf]
 Movelist=[exf6]
 Squares with promote masks: []
    at raptor.chess.ClassicGame.testForSanDisambiguationFromCheck(ClassicGame.java:2399)
    at raptor.chess.ClassicGame.makeSanMove(ClassicGame.java:924)
    at raptor.connector.ics.IcsUtils.addCurrentMove(IcsUtils.java:123)
    at raptor.connector.ics.IcsParser.processStyle12Adjustment(IcsParser.java:979)
    at raptor.connector.ics.IcsParser.process(IcsParser.java:777)
    at raptor.connector.ics.IcsParser.parseGameEvents(IcsParser.java:459)
    at raptor.connector.ics.IcsParser.parse(IcsParser.java:190)
    at raptor.connector.ics.IcsConnector.parseMessage(IcsConnector.java:1550)
    ... 4 more
 Game 1: LectureBot moves: Nxe4+
 LectureBot(TD)(----)[1] kibitzes: When the centre is open, the white king is helpless...
---- 

What version of the product are you using? On what operating system and
what environment?
Raptor_Beta1e_OS_X_Cocoa_32 on MacBook

Original issue reported on code.google.com by ktoumura@gmail.com on 17 Nov 2009 at 2:38

GoogleCodeExporter commented 9 years ago
Looks like here are lecture bot issues once again with all the fixes from the 
past
release. I will look into fixing it for the Beta1e release.

Original comment by carsonday on 17 Nov 2009 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by carsonday on 17 Nov 2009 at 7:04

GoogleCodeExporter commented 9 years ago
I think I fixed this without breaking anything else but we will see. Puzzlebot 
and
obsing examined games seem to work with the fics.

Original comment by carsonday on 17 Nov 2009 at 10:18

GoogleCodeExporter commented 9 years ago
I think I fixed this without breaking anything else but we will see. Puzzlebot 
and
obsing examined games seem to work with the fics.

Original comment by carsonday on 17 Nov 2009 at 10:18

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r850.

Original comment by carsonday on 17 Nov 2009 at 10:18