(self)
| 85 | assert(self.current_state() in self.all_states()) |
| 86 | |
| 87 | def game_over(self): |
| 88 | # returns true if game is over, else false |
| 89 | # true if we are in a state where no actions are possible |
| 90 | return (self.i, self.j) not in self.actions |
| 91 | |
| 92 | def all_states(self): |
| 93 | # possibly buggy but simple way to get all states |
no outgoing calls
no test coverage detected