示例#1
0
def create_game():
    global game
    num_players = c.request_num_players()
    num_cards_each = c.request_num_cards_each()
    player_names = []
    for i in range(num_players):
        player_name = c.request_player_name(i)
        player_names.append(player_name)
    game = Game(num_players, num_cards_each, player_names)
    game.deal()
    c.clear_screen()
    c.show_game(game)
    c.wait_user()
示例#2
0
def create_game():
    global game
    num_players = c.request_num_players()
    num_cards_each = c.request_num_cards_each()
    player_names = []
    for i in range(num_players):
        player_name = c.request_player_name(i)
        player_names.append(player_name)
    game = Game(num_players, num_cards_each, player_names)
    game.deal()
    c.clear_screen()
    c.show_game(game)
    c.wait_user()
示例#3
0
def continue_main_game():
    global game
    c.clear_screen()
    c.show_game(game)
    c.line()
    main_game()
示例#4
0
def first_move():
    global game
    game.first_move()
    c.clear_screen()
    c.show_game(game)
    c.line()
示例#5
0
def continue_main_game():
    global game
    c.clear_screen()
    c.show_game(game)
    c.line()
    main_game()
示例#6
0
def first_move():
    global game
    game.first_move()
    c.clear_screen()
    c.show_game(game)
    c.line()