added harvest phase mechanics and have test setup in vckonline.py
This commit is contained in:
14
vckonline.py
14
vckonline.py
@@ -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)
|
||||
Reference in New Issue
Block a user