missing copy to restore initial game state
This commit is contained in:
parent
9eea9bd245
commit
ff6caa457f
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user