Author: Stan Arts
Date: 11:15:37 09/24/04
Go up one level in this thread
On September 24, 2004 at 13:54:58, Michael Henderson wrote: >I have the latest winboard and I seem to be having some consistency problems >with the "go" command. If it's a new game and I am white, the first move I play >is sent to Pluto(my engine). No go command is sent, which is fine since my >engine will think and make a move anyway. > >When I match GNUchess vs Pluto, there are problems. GNUchess is white and makes >the first move, then that move and the go command are sent to Pluto. First, >Pluto takes the move and makes a move of its own on the board, and then the "go" >command makes it play as white--then it messes up. > >What's the best solution for this? > >thanks, >Michael Hi Michael Having a force-mode/edit game mode, where your program accepts moves for both sides, and a "go" mode, where your program thinks and plays for the side that was on move when you receaved "go". Winboard takes care of when your engine should go into forcemode, and when to go into "go" mode. With a new game you will receave: "force" , then you go into force-mode "new" , to know a new game starts. White is at move now. When the engine should be white and is supposed to play, you will receave "go", and since white was at move, you start to calculate. If the engine is supposed to be black, you will still be in force-mode, and receave white's move. Now black will be at move, so your engine is waiting for black's move in forcemode, but instead receaves "go", and now you can start to calculate and play black's side. When the game is underway you won't receave force and go anymore, but your program should now know which side it is. :) I quickly looked at a debug file, here it also sends "go" for white, this is a bit further down, after winboard has also prepared startup of the black's engine. Hope this helps. Greetings and goodluck Stan
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.