Python Forum
Hex coords and using the tile
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hex coords and using the tile
#4
Instead of a list, I'd use a dictionary for the game board.
game_board = {}

#loop over how you like adding hexes.
game_board.update({x,y : Hex(x,y)})
Then you can refer to them my location game_board[x,y].

As far as keyboard stuff, where are you at it?
Reply


Messages In This Thread
Hex coords and using the tile - by jauger - Mar-10-2021, 01:34 PM
RE: Hex coords and using the tile - by michael1789 - Mar-10-2021, 03:42 PM
RE: Hex coords and using the tile - by jauger - Mar-10-2021, 03:54 PM
RE: Hex coords and using the tile - by michael1789 - Mar-10-2021, 07:49 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020