private void InitializeTurn() { MoveValuation move = null; foreach (IStrategy strategy in this.strategies) { MoveValuation currentMove = strategy.GetChoice(); if (move == null || move.Weight < currentMove.Weight) { move = currentMove; } } this.gameData.ChooseTurn(move.Choice, playerId); }
public void StartAI() { MoveValuation choice = EvaluateTurns(); this.gameData.ChooseTurn(choice.Choice, playerId); }