Skip to content

Instantly share code, notes, and snippets.

@halirutan
Last active July 16, 2021 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halirutan/8c9a7416ae543b51dce2e0b8d5c916cf to your computer and use it in GitHub Desktop.
Save halirutan/8c9a7416ae543b51dce2e0b8d5c916cf to your computer and use it in GitHub Desktop.
import string
board_dims = {"x": 3, "y": 4}
board = {}
for i in string.ascii_uppercase[:board_dims["x"]]:
for j in range(1, board_dims["y"] + 1):
board[i + str(j)] = " "
print(board)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment