Ejemplo n.º 1
0
 public void MontecarloDecide(TGame currentState)
 {
     Debug.Log("EMPEZANDO");
     Ready           = false;
     ActionToExecute = Utilities.Actions.None;
     simulator.StartTreeSearch(currentState);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Simulates an AI tick but the provided player will take the given decision
 /// </summary>
 /// <param name="idPlayerFixedDecision">The player that will execute the given action</param>
 /// <param name="act">The action to be executed by the provided player</param>
 public void AITick(int idPlayerFixedDecision, Utilities.Actions act)
 {
     for (int i = 0; i < players.Length; i++)
     {
         if (!players[i].HasLost())
         {
             if (i == idPlayerFixedDecision)
             {
                 players[i].Decide(act);
             }
             else
             {
                 players[i].Decide();
             }
         }
     }
 }