problem 16404 wrong player plays
problem 16404 wrong player plays
In the javascript version of problem 16404, the CPU plays as black even though black is first to move: to make the problem go, you must click a black move, then a white move; then the CPU will play a black move and you can play white's (doomed) moves.
Re: problem 16404 wrong player plays
thanks. working on this.
Re: problem 16404 wrong player plays
happening on 16697, too, if you need more test cases
Re: problem 16404 wrong player plays
By the way, the problem with 16404 still exists (in javascript mode). It's is marked as buggy more than 20 times.
Re: problem 16404 wrong player plays
Found it, fixed it too.
The SGF says PL[W] in the header. This is ignored in Java mode but forces White to play in JavaScript mode.
I changed it to PL and now it works fine in both modes.
Maybe the PL[] construct can be removed altogether, but for now I'm happy to be able to fix this specific problem like this instead of by rebuilding the entire problem (which I've done a few times )
The SGF says PL[W] in the header. This is ignored in Java mode but forces White to play in JavaScript mode.
I changed it to PL and now it works fine in both modes.
Maybe the PL[] construct can be removed altogether, but for now I'm happy to be able to fix this specific problem like this instead of by rebuilding the entire problem (which I've done a few times )
Re: problem 16404 wrong player plays
Fixed 16697 too, same bug.