missing copy to restore initial game state

This commit is contained in:
Simon Pirkelmann 2021-09-05 23:42:08 +02:00
parent 9eea9bd245
commit ff6caa457f

View File

@ -426,7 +426,7 @@ class Game:
self.robot.x = self.initial_pos[0] self.robot.x = self.initial_pos[0]
self.robot.y = self.initial_pos[1] self.robot.y = self.initial_pos[1]
self.robot.orientation = self.initial_pos[2] self.robot.orientation = self.initial_pos[2]
self.board.tiles = self.inital_board_tiles self.board.tiles = self.inital_board_tiles.copy()
return 'input' return 'input'
def run(self): def run(self):