Example #1
0
    public void SetEnvironmentAndPlayer(int player_type_red, int player_type_green)
    {
        env           = new Environment();
        states        = env.states;
        red_actions   = new Actions();
        green_actions = new Actions();

        this.player_type_red   = player_type_red;
        this.player_type_green = player_type_green;

        random_player_red     = new RandomPlayer(true);
        human_player_red      = new HumanPlayer(true);
        hand_coded_player_red = new HandCodedPlayer(true);
        agent_player1_red     = new AgentPlayer1(true);
        agent_player2_red     = new AgentPlayer2(true);

        random_player_green     = new RandomPlayer(false);
        human_player_green      = new HumanPlayer(false);
        hand_coded_player_green = new HandCodedPlayer(false);
        agent_player1_green     = new AgentPlayer1(false);
        agent_player2_green     = new AgentPlayer2(false);
    }