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:
parent
9429d93da9
commit
7719dfdc4e
7
Looper_maps/mine1_map
Normal file
7
Looper_maps/mine1_map
Normal file
@ -0,0 +1,7 @@
|
||||
.......
|
||||
ppp....
|
||||
pvpp...
|
||||
..#....
|
||||
...#...
|
||||
....ppp
|
||||
.p.p...
|
7
Looper_maps/mine2_map
Normal file
7
Looper_maps/mine2_map
Normal file
@ -0,0 +1,7 @@
|
||||
.......
|
||||
ppp....
|
||||
p.pp...
|
||||
..#>...
|
||||
...#...
|
||||
....ppp
|
||||
.p.p...
|
7
Looper_maps/mine3_map
Normal file
7
Looper_maps/mine3_map
Normal file
@ -0,0 +1,7 @@
|
||||
......<
|
||||
ppp....
|
||||
p.pp...
|
||||
..#....
|
||||
...#...
|
||||
....ppp
|
||||
.p.p...
|
7
Looper_maps/mine4_map
Normal file
7
Looper_maps/mine4_map
Normal file
@ -0,0 +1,7 @@
|
||||
.......
|
||||
ppp....
|
||||
p.pp...
|
||||
..#....
|
||||
...#...
|
||||
....ppp
|
||||
^p.p...
|
7
Looper_maps/start_map
Normal file
7
Looper_maps/start_map
Normal file
@ -0,0 +1,7 @@
|
||||
>......
|
||||
ppp....
|
||||
p.pp...
|
||||
..#....
|
||||
...#...
|
||||
....ppp
|
||||
.p.p...
|
31
main.py
31
main.py
@ -164,15 +164,30 @@ class Game:
|
||||
#genetic_lib_runner = GeneticalWithLib()
|
||||
#genetic_lib_runner.run()
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user