Merge pull request #916 from MikeTheWatchGuy/Dev-latest
Ability to abort computer to computer game
This commit is contained in:
commit
87c3ba03f7
5 changed files with 56 additions and 146 deletions
|
@ -1235,6 +1235,13 @@ class Match():
|
|||
pass
|
||||
|
||||
elif turnType == 'Computer':
|
||||
event, values = Match.window.Read(timeout=0)
|
||||
if event == '_QUIT_':
|
||||
if sg.PopupYesNo('Do you really want to quit?') == 'Yes':
|
||||
self.matchAbort = True
|
||||
self.matchComplete = True
|
||||
break
|
||||
|
||||
self.elements['Console'] = '{}\'s Turn'.format(self.players[self.turn].getName())
|
||||
self.drawScreen(self.hideComputerHands)
|
||||
if not self.simulation:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue