public void MontecarloDecide(TGame currentState) { Debug.Log("EMPEZANDO"); Ready = false; ActionToExecute = Utilities.Actions.None; simulator.StartTreeSearch(currentState); }
/// <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(); } } } }