File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,13 @@ func (uci *UCIAdapter) Read(reader *bufio.Reader) {
203203 // There are a number of commands that can follow this command, all will be sent in the same string.
204204 // If one command is not send its value should be interpreted as it would not influence the search.
205205 case "go" :
206- ponder = uci .start (uciFields [1 :]) // parse any parameters given by GUI and begin searching.
207- if ! uci .optionPonder || ! ponder {
208- uci .moveCounter ++
206+ if uci .brd != nil {
207+ ponder = uci .start (uciFields [1 :]) // parse any parameters given by GUI and begin searching.
208+ if ! uci .optionPonder || ! ponder {
209+ uci .moveCounter ++
210+ }
211+ } else {
212+ uci .InfoString ("You must set the current position via the position command before searching.\n " )
209213 }
210214 // * stop
211215 // stop calculating as soon as possible,
You can’t perform that action at this time.
0 commit comments