problem 16404 wrong player plays

Post Reply
dmwit
Posts: 7
Joined: Wed May 16, 2012 10:49 am

problem 16404 wrong player plays

Post by dmwit »

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.
User avatar
adum
Site Admin
Posts: 422
Joined: Tue Sep 30, 2008 5:09 pm

Re: problem 16404 wrong player plays

Post by adum »

thanks. working on this.
dmwit
Posts: 7
Joined: Wed May 16, 2012 10:49 am

Re: problem 16404 wrong player plays

Post by dmwit »

happening on 16697, too, if you need more test cases ;-)
User avatar
adum
Site Admin
Posts: 422
Joined: Tue Sep 30, 2008 5:09 pm

Re: problem 16404 wrong player plays

Post by adum »

thanks
chuspita
Posts: 3
Joined: Wed Jun 05, 2013 10:03 am

Re: problem 16404 wrong player plays

Post by chuspita »

By the way, the problem with 16404 still exists (in javascript mode). It's is marked as buggy more than 20 times.
User avatar
BartTM
Posts: 119
Joined: Mon Sep 21, 2009 1:46 pm

Re: problem 16404 wrong player plays

Post by BartTM »

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 :( )
User avatar
BartTM
Posts: 119
Joined: Mon Sep 21, 2009 1:46 pm

Re: problem 16404 wrong player plays

Post by BartTM »

Fixed 16697 too, same bug.
Post Reply