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