Exemplo n.º 1
0
def game_setup(settings):
    _DEV_HUMAN_PLAYERS = 6
    game_board = board.generate_empty_board()
    game_master = risk.game_master.GameMaster(game_board, settings)
    game_master.generate_human_players(_DEV_HUMAN_PLAYERS)
    game_master.add_end_turn_callback(end_turn_debug_print)
    return game_master
Exemplo n.º 2
0
def game_setup(settings):
    _DEV_HUMAN_PLAYERS = 1
    game_board = board.generate_empty_board()
    #game_board = board.generate_mini_board()
    game_master = risk.game_master.GameMaster(game_board, settings)
    game_master.generate_players(_DEV_HUMAN_PLAYERS, settings.cli)
    game_master.add_end_turn_callback(end_turn_debug_print)
    # dev
    board.dev_random_assign_owners(game_master)
    return game_master
Exemplo n.º 3
0
Arquivo: risk.py Projeto: clhliu/risk
def game_setup(settings):
    _DEV_HUMAN_PLAYERS = 1
    game_board = board.generate_empty_board()
    #game_board = board.generate_mini_board()
    game_master = risk.game_master.GameMaster(game_board, settings)
    game_master.generate_players(_DEV_HUMAN_PLAYERS, settings.cli)
    game_master.add_end_turn_callback(end_turn_debug_print)
    # dev
    board.dev_random_assign_owners(game_master)
    return game_master