AsyncEclipse / DiscordBot

GNU General Public License v3.0
0 stars 2 forks source link

Tile setup and exploring #24

Closed Fingon00 closed 1 month ago

TaylorBoyd commented 1 month ago

Couple of thoughts, I was going to work on this specifically this weekend but looks like you got a bit of a head start!

Fingon00 commented 1 month ago

Gonna be busy today (playing IRL TI4) so can't respond thoroughly, but I concur with these thoughts.

  1. Agreed
  2. Give them a default color based off faction, and a change color slash command that can be used/built up later. Color choice is a luxury I think can be safely put off until we've got a lot of the essentials down.
  3. This push was rather sloppy in terms of proper placement. I agree it needs to be moved out of setup and in general cleaned up.
  4. I plan on doing something similar to the buttons for TI actions (tactical/component/strategy/etc) when it comes to actually implementing player turns, and the explore logic can be explicitly handled there. This explore command RN can form a future basis for that, but I expect it to change quite a bit between now and final release. This rn was more a proof of concept of how to do actions based off button presses with python, and how to manipulate the game state generally. Next major step I think is handling adding and removing units to tiles.
TaylorBoyd commented 1 month ago

Yeah color makes sense to me.

My thought for adding population cubes and influence discs is to just fill the empty list slots with the player color in the tile dictionary on the board.

science_pop = ["blue", "empty"] influence_disc = ["blue]

Something like that. Easy to match it to the player and then its a quick check for which color cube and influence disc needs to be rendered in the picture. Curious what you think.

Otherwise this is awesome! Board picture looks great.

Fingon00 commented 1 month ago

I figure we'll need to sorta build a json for each specific tile, which contains such info as what defenders it has, what planets (in planet could be contained x,y cord, type, whether its currently occupied), what wormholes it has, etc. which we can load into the games tile dictionary when the tile is initially placed.

TaylorBoyd commented 1 month ago

Looks like Pat has that completed already in his sectors JSON file. When the tile is actually picked and placed then it can open the sectors JSON file and load that into the gamestate board.

Fingon00 commented 1 month ago

Ah cool I just found that sector json file (looks like it may need some comma's lol though). Yeah that's what I was envisioning. I'll see if I can make my methods load those into the game map, and I'll see if I can add an /add /remove population command