glinscott / Garbochess-JS

A strong javascript chess engine using WebWorkers
http://forwardcoding.com/projects/ajaxchess/chess.html
Other
310 stars 100 forks source link

busted on repeated new game with computer as white #22

Open dave-watts opened 9 years ago

dave-watts commented 9 years ago

If you set the computer to play white and keep clicking the new game button eventually a busted message will occur, it seems that the FEN in this case is incorrect for the move, so must be something with the timing of the FEN update, which in some instances is happening prior to the move checking.

problem occurs in this function

function GetMoveFromString(moveString)

Cheers

Dave