# BasicTwo vs. BasicOne # an arena to match up BasicOne vs BasicOne in 3x4, no flower, 0-2 die Ur. # BasicOne Strategy: If possible, move to the end tile. If not, randomly play. from game_logic import init_board, game_rules, roll_die, possible_moves, first_player, choose_move, current_player_info, show_possible_moves, current_board_info, current_die_info, choose_move_num, choose_move, change_player, player_choose_color, play_again, player_win import basic_one import basic_two import random import time game_rules() num_black_wins = 0 num_white_wins = 0 num_black_starts = 0 num_white_starts = 0 num_zeros = 0 num_ones = 0 num_twos = 0 num_total_games = 0 num_one_moves = 0 num_two_moves = 0 num_three_moves = 0 num_choose_one = 0 num_choose_two = 0 desired_moves = 0 white_desired_moves = 0 black_desired_moves = 0 white_chose_desired_move = 0 black_chose_desired_move = 0 chose_desired_move = 0
# Run this file to to play against a computer playing agent in 3x4, no flower, 0-2 die Ur from game_logic import init_board, game_rules, roll_die, possible_moves, first_player, choose_move, current_player_info, show_possible_moves, current_board_info, current_die_info, choose_move_num, choose_move, change_player, player_choose_color, play_again, player_win, game_mode_info, player_info, computer_choose_color, game_mode_chosen, choose_agent import random import basic_one import basic_two import basic_three import time game_rules() # show the game rules agent = choose_agent() # choose the agent you want to play game_mode = game_mode_chosen( agent) # determines game_mode based off of chosen agent game_mode_info(game_mode) # show the game mode info player = player_choose_color() # will be 'b' or 'w' computer = computer_choose_color(player) # will be color not chosen by player player_info(player, computer, game_mode) # displays player color and computer color board = init_board() # initialize the board first = first_player() # initialize first player; will be 'b' or 'w' current_board = board # current board current_player = first # current player print("Game Start!") time.sleep(1) # adds 1 second delay to game print() # main while loop for the game while True: