コード例 #1
0
 /// <summary>
 /// Returns the symbol at position p.
 /// </summary>
 public Symbol this[Placement p] {
     get {
         return(gameBoard[p.X, p.Y]);
     }
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 private bool WinningMove(Game gameState, out Placement p)
 {
     return(WinningMove(gameState, gameState.CurrentPlayer, out p));
 }