added harvest phase mechanics and have test setup in vckonline.py

This commit is contained in:
2023-05-03 10:06:57 -07:00
parent 2f613d0dbb
commit 906b48a07a
7 changed files with 2639 additions and 42 deletions

View File

@@ -1,7 +1,11 @@
from common import *
print("Welcome to Valeria Card Kingdoms: Online")
player_count = 4
citizen_set = "base1" # base1, base2, shadowvale, flamesandfrost, crimsonseas, shuffled
game_board = Game(player_count, citizen_set)
from server import load_game_data
player1 = Player(shortuuid.uuid(), "Player 1")
player2 = Player(shortuuid.uuid(), "Player 2")
player_list = [player1, player2]
base1_new_game_state = load_game_data(str(uuid.uuid4()), "base1", player_list)
game_board = Game(base1_new_game_state)
game_board.play_turn()
game_json = json.dumps(game_board, cls=GameObjectEncoder, indent=2)
with open("gamestate.txt", "w") as dump:
dump.write(game_json)