KonstantinKlepikov / cold-war-boardgame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get the main game data for adding to db model of game

KonstantinKlepikov opened this issue · comments

@chemeshuggah use json schema of apy (no need FULL SCHEMA!!! Is prototype)

  • Game object
    • Players
      • player1, player2
        • sides, cards, and other
    • Game Turns
      • Steps
    • Graveyard (have 0 cards with new game)
current_game_data:
	id: int
	players:
                [
		player:
			id: str
			has_priority: bool
			is_bot: bool
			score: int[0-100]
			faction: str['a', 'b']
			player_cards:
				agents_cards:
					winning_objective_cards: []
					agents_cards:
						agent:
							id: str
							is_dead: bool
							is_choosen: bool
							is_active: bool
						
					...
				group_cards:
					group_cards_deck_top:
						group_card:
							...
					group_card_in_play:
						group_card:
							...
					
			available_spetials: []
		player:
			...
                ]
	game_cards:
		objective_cards:
			objective_card_for_turn: str
			objective_deck_len: int
			objective_pile_len: int
			objective_pile:
                                [
			 	objective_card:
			 		-card data
			 	...
                                ]
			objective_deck_top:
				objective_card:
			 		-card data
			 	...
		group_cards:
			group_cards_deck_len: int
			gtoup_cards_pile_len: int
			gtoup_cards_pile:
                                [
				group_card:
				...
                                ]
	game_steps:
		turn_number: int[min=0]
		turn_phase: str

cards in db:

Image

Image

todo:

  • add arrays to schema
  • add game_cards