Skip to content

Instantly share code, notes, and snippets.

Created Jun 23, 2021
What would you like to do?
# 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