/// <summary> /// Returns the symbol at position p. /// </summary> public Symbol this[Placement p] { get { return(gameBoard[p.X, p.Y]); } }
/// <summary> /// Returns true iff p is not occupied by a player symbol. /// </summary> public bool IsLegalMove(Placement p) { return(gameBoard[p.X, p.Y] == Symbol.N); }
private bool WinningMove(Game gameState, out Placement p) { return(WinningMove(gameState, gameState.CurrentPlayer, out p)); }