Games_Chess

From: Date: Thu, 23 Sep 2004 18:38:56 +0000
Subject: Games_Chess
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14618@lists.php.net to get a copy of this message
Hi, Is anyone familiar with the Games_Chess code ? I have a nasty bug which I (and others) can reproduce. I am trying to create an online chess game, which is located at: http://www.mobstar.cc/ichess However that is a bug in the Games_Chess code, which I will explain below: Go to: http://www.mobstar.cc/Games/examples/HTMLChess.php Which is where the original demo is located. Try this FEN: rnk2Bn1/p1p1Ppp1/bp6/1P6/6r1/7p/P1PP1PPP/RN2K1NR w KQ - 0 0 And do the following moves: e8=Q+ Kb7 bxa6+ Kxa6 Bb4 Rg5 a4 Rg6 a5 Rg5 Qc8 this produces: Warning: in_array(): Wrong datatype for second argument in /var/www/Games/Chess/Standard.php on line 410 Which is a check checking routine. This bug has something to do with the promoted queen, because if you take any other FEN after the promotion and you repeat the moves you will not get any errors. Can anyone fix this ? Thanks, Bastiaan

« previous php.pear.general (#14618) next »