(self)
| 168 | self.display("Your turn! Click leftmost stick to remove.") |
| 169 | |
| 170 | def notify_over(self): |
| 171 | if self.game.model.winner == 0: |
| 172 | msg2 = "Congrats. You're the winner!!!" |
| 173 | else: |
| 174 | msg2 = "Sorry, the computer is the winner." |
| 175 | self.display("To play again press space bar. To leave press ESC.", msg2) |
| 176 | |
| 177 | def clear(self): |
| 178 | if self.game.state == Nim.OVER: |