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