Skip to content

Instantly share code, notes, and snippets.

@joooyzee
Created June 23, 2021 08:28
Show Gist options
  • Save joooyzee/d15013fee456b7cc8572bcb5e8582e86 to your computer and use it in GitHub Desktop.
Save joooyzee/d15013fee456b7cc8572bcb5e8582e86 to your computer and use it in GitHub Desktop.
# print the location of all the bombs placed on the Game Map
list_of_bombs = game_state.bombs ### list_of_bombs = [(1,1),(2,3)...]
for bomb in list_of_bombs:
print(f"Bomb at x: {bomb[0]} y: {bomb[1]}")
# output:
> Bomb at x: 1 y: 1
> Bomb at x: 2 y: 3
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment