douglasbagnall / p4wn

a smallish turn-of-the-century javascript chess engine
http://p4wn.sf.net
113 stars 33 forks source link

sourceforge error #18

Closed dusadrian closed 8 years ago

dusadrian commented 9 years ago

Using: http://p4wn.sourceforge.net/src/index.html?start=r2k3B/ppp2p1p/7n/3p4/8/1P3N2/P4qP1/4RRK1%20w%20q%20-%200%2017&player=white

and setting the computer level to slowest, after 17. Rxf2 the computer responds with 17...Ng4 but the Knight from h6 is still left in the original position, and two black Knights appear on the board.

douglasbagnall commented 9 years ago

Right. It looks as if the display code is confused, but the engine has a correct view of the game -- that extra knight can't move, and if something "captures" it, the move is not read as a capture.

dusadrian commented 9 years ago

One other common denominator for all (latest) three issues is that computer level is set to slowest (level 6). Either that, or the way FENs are interpreted and/or constructed, might have something to do with the errors.

douglasbagnall commented 8 years ago

I think #16, #17 and this are avoided in the master branch. Adrian, if you find otherwise please reopen. Thanks.

dusadrian commented 8 years ago

Just retested the issue, it's solved for good. Awesome job, thank you!

On Wed, Sep 16, 2015 at 12:35 PM, Douglas Bagnall notifications@github.com wrote:

I think #16 https://github.com/douglasbagnall/p4wn/issues/16, #17 https://github.com/douglasbagnall/p4wn/issues/17 and this are avoided in the master branch. Adrian, if you find otherwise please reopen. Thanks.

— Reply to this email directly or view it on GitHub https://github.com/douglasbagnall/p4wn/issues/18#issuecomment-140686624.

Adrian Dusa University of Bucharest Romanian Social Data Archive Soseaua Panduri nr.90 050663 Bucharest sector 5 Romania