diff --git a/main.py b/main.py index a18a252..86ae369 100644 --- a/main.py +++ b/main.py @@ -120,11 +120,11 @@ class Game: self.player.parse_maze_moves() self.i_like_to_move_it() self.wentyl_bezpieczenstwa = 1 - if event.key == pg.K_F3: + if event.key == pg.K_F3 and self.wentyl_bezpieczenstwa == 0: pg.event.clear() player_moves = BFS.run() self.graph_move(player_moves) - #self.wentyl_bezpieczenstwa = 1 + self.wentyl_bezpieczenstwa = 1 if event.key == pg.K_F4 and self.wentyl_bezpieczenstwa == 0: pg.event.clear() #print("test1")