Let edit command switch to force mode
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 7 Nov 2010 20:51:36 +0000 (21:51 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sun, 7 Nov 2010 21:00:24 +0000 (22:00 +0100)
Fairy-Max stayed playing the side it was playing before 'edit'. Now it
switches to 'force' mode, so that it won't start to play automatically
on receiving a move after setting up a position.

fairymax.c

index 8d6a125..3a89dd5 100644 (file)
@@ -838,6 +838,7 @@ int main(int argc, char **argv)
                        setupPosition[128] = Side;\r
                        setupPosition[129] = R;\r
                        for(i=0; i<32; i++) setupPosition[i+130] = pl[i];\r
+                       Computer = EMPTY; // after edit: force mode!\r
                        continue;\r
                }\r
                 /* command not recognized, assume input move */\r