On-line blitz tourney May
Moderators: hgm, Dann Corbit, Harvey Williamson
-
hgm
- Posts: 27703
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: On-line blitz tourney May
You should not be in force mode. After 'new' the engine should be in 'play black' mode.
-
Evert
- Posts: 2929
- Joined: Sat Jan 22, 2011 12:42 am
- Location: NL
Re: On-line blitz tourney May
Yeah, that's what I said. I didn't have a line "force_mode = false" in the code that handles the "new" command (the real line is "in_play = true").hgm wrote:You should not be in force mode. After 'new' the engine should be in 'play black' mode.
Not sure why that wouldn't always break things though; as far as I can see it should. Will investigate further, but that line is in now.
-
hgm
- Posts: 27703
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: On-line blitz tourney May
Well, it seems XBoard is not entirely consistent in its use of protocol here. Sometimes it puts the engine in force mode to send it the white move, and then 'go' to set it playing as black. I never tried to figure out why it does that, and when. (But apparently not in zippy mode.) With GUI book you would have no problem, because the book moves will be received in force mode, and a 'go' is mandatory. Resuming an adjourned game might have worked, because the already played moves are loaded in force mode. (XBoard is not smart enough to see there is only one (white) move, and make an exception for that.)
-
Evert
- Posts: 2929
- Joined: Sat Jan 22, 2011 12:42 am
- Location: NL
Re: On-line blitz tourney May
Resuming an adjourned game definitely worked (except when I got bitten by the other bug I had, which could cause an endless loop while going through the moves listed in the opening book). Hopefully it's all fixed now though, but I guess we'll find out for sure in a month or so...hgm wrote:Well, it seems XBoard is not entirely consistent in its use of protocol here. Sometimes it puts the engine in force mode to send it the white move, and then 'go' to set it playing as black. I never tried to figure out why it does that, and when. (But apparently not in zippy mode.) With GUI book you would have no problem, because the book moves will be received in force mode, and a 'go' is mandatory. Resuming an adjourned game might have worked, because the already played moves are loaded in force mode. (XBoard is not smart enough to see there is only one (white) move, and make an exception for that.)
Still, I don't understand why this apparently didn't cause a problem in every single game... I'll run the program through valgrind (again) to make sure I'm not doing any out-of-bound access that can (as a side effect) switch off force mode.
-
hgm
- Posts: 27703
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: On-line blitz tourney May
It should only cause problems when you play black.