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()
def continue_main_game(): global game c.clear_screen() c.show_game(game) c.line() main_game()
def first_move(): global game game.first_move() c.clear_screen() c.show_game(game) c.line()