misc changes

Co-authored-by: Marcin Matoga <marmat35@st.amu.edu.pl>
Co-authored-by: Sebastian Piotrowski <sebpio@st.amu.edu.pl>
Co-authored-by: Ladislaus3III <Ladislaus3III@users.noreply.github.com>
This commit is contained in:
eugenep 2021-06-22 20:57:34 +02:00
parent 9429d93da9
commit 7719dfdc4e
6 changed files with 58 additions and 8 deletions

7
Looper_maps/mine1_map Normal file
View File

@ -0,0 +1,7 @@
.......
ppp....
pvpp...
..#....
...#...
....ppp
.p.p...

7
Looper_maps/mine2_map Normal file
View File

@ -0,0 +1,7 @@
.......
ppp....
p.pp...
..#>...
...#...
....ppp
.p.p...

7
Looper_maps/mine3_map Normal file
View File

@ -0,0 +1,7 @@
......<
ppp....
p.pp...
..#....
...#...
....ppp
.p.p...

7
Looper_maps/mine4_map Normal file
View File

@ -0,0 +1,7 @@
.......
ppp....
p.pp...
..#....
...#...
....ppp
^p.p...

7
Looper_maps/start_map Normal file
View File

@ -0,0 +1,7 @@
>......
ppp....
p.pp...
..#....
...#...
....ppp
.p.p...

31
main.py
View File

@ -164,16 +164,31 @@ class Game:
#genetic_lib_runner = GeneticalWithLib() #genetic_lib_runner = GeneticalWithLib()
#genetic_lib_runner.run() #genetic_lib_runner.run()
self.wentyl_bezpieczenstwa = 1 self.wentyl_bezpieczenstwa = 1
if event.key == pg.K_F10 and self.wentyl_bezpieczenstwa == 0:
self.player.ai_mode = "tree"
self.player.check_bomb()
self.wentyl_bezpieczenstwa = 1
if event.type == pg.KEYUP:
if event.key == pg.K_F2:
self.wentyl_bezpieczenstwa = 0
if event.key == pg.K_F3:
self.wentyl_bezpieczenstwa = 0
if event.key == pg.K_F4:
self.wentyl_bezpieczenstwa = 0
if event.key == pg.K_F5:
self.wentyl_bezpieczenstwa = 0
if event.key == pg.K_F6:
self.wentyl_bezpieczenstwa = 0
if event.key == pg.K_F7:
self.wentyl_bezpieczenstwa = 0
if event.key == pg.K_F8:
self.wentyl_bezpieczenstwa = 0
if event.key == pg.K_F9:
self.wentyl_bezpieczenstwa = 0
if event.key == pg.K_F10:
self.wentyl_bezpieczenstwa = 0
def graph_move(self, moves): def graph_move(self, moves):
for i in moves: for i in moves: