Do UCI code slightly better
This commit is contained in:
parent
85a0b83860
commit
df0b0e2ca4
2 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ CHANGELOG
|
|||
2006-11-27 Robert Ancell <bob27@users.sourceforge.net>
|
||||
* Applied HIG patch from (Gnome bug #379294).
|
||||
* Disable "Save As" menu item when no game selected.
|
||||
* Send 'ucinewgame' and 'position startpos' to UCI chess engines
|
||||
|
||||
2006-11-22 Robert Ancell <bob27@users.sourceforge.net>
|
||||
* Support loading of multiple games from the command line.
|
||||
|
|
|
@ -139,6 +139,8 @@ class StateMachine:
|
|||
if len(args) != 0:
|
||||
print 'WARNING: Arguments on readyok: ' + str(args)
|
||||
self.__ready = True
|
||||
self.__sendCommand('ucinewgame')
|
||||
self.__sendCommand('position startpos')
|
||||
return 'info'
|
||||
|
||||
elif command == 'bestmove':
|
||||
|
|
Loading…
Reference in a new issue