Skip to content

Commit

Permalink
Many more randomly-placed mobs
Browse files Browse the repository at this point in the history
  • Loading branch information
seansawyer committed Oct 10, 2019
1 parent b8ba772 commit 1735b8b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pmrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,12 @@ def main():
# pick a random tile to place the exit
occupied_coords = []
exit_coords = choose_random_open_tile(map_tiles, occupied_coords)
num_mobs = 40
mobs_coords = [
choose_random_open_tile(map_tiles, occupied_coords),
choose_random_open_tile(map_tiles, occupied_coords),
choose_random_open_tile(map_tiles, occupied_coords),
]
mobs_hp = [
5,
4,
3,
choose_random_open_tile(map_tiles, occupied_coords)
for i in range(num_mobs)
]
mobs_hp = [random.randint(1, 5) for i in range(num_mobs)]
# pick a random tile to place the player
tile = '#'
player_coords = choose_random_open_tile(map_tiles, occupied_coords)
Expand Down

0 comments on commit 1735b8b

Please sign in to comment.