public Logic(IGameStartInformation startInformation, bool connectionTesting, int?overrideMaxDepth = null, Board overrideBoard = null) : base(startInformation.WhitePlayer) { _connectionTestOverride = connectionTesting; Strategy = new Strategy(startInformation.WhitePlayer, overrideMaxDepth); if (overrideBoard != null) { Board = new Board(overrideBoard); } else if (!connectionTesting) { Board.InitializeEmptyBoard(); } if (!IsPlayerWhite) { ReceiveMove(startInformation.OpponentMove); } }
public Logic(IGameStartInformation startInformation, int?overrideMaxDepth = null, Board?overrideBoard = null) : base(startInformation.WhitePlayer) { Strategy = new Strategy(startInformation.WhitePlayer, overrideMaxDepth, Settings.UseTranspositionTables); if (overrideBoard != null) { Board = new Board(overrideBoard); } else { Board.InitializeEmptyBoard(); } // Opponent non-null only if player is black if (!IsPlayerWhite) { ReceiveMove(startInformation.OpponentMove); } }
public ExampleAiLogic(bool isPlayerWhite, IGameStartInformation info) : base(isPlayerWhite) { // TODO }