Example #1
0
 public DrawState(TicTacToeConsoleRunnerState state)
 {
     this.TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
 }
Example #2
0
 public HumanWinsState(TicTacToeConsoleRunnerState state)
 {
     this.TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
 }
 public AskingForPlayerState(TicTacToeConsoleRunnerState state)
 {
     TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
 }
Example #4
0
 public PlayingState(TicTacToeConsoleRunnerState state, int initialPlayer)
 {
     this.TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
     this.CurrentPlayer = state.TicTacToeConsoleRunner.Players[initialPlayer - 1];
 }
Example #5
0
 public QuitGameState(TicTacToeConsoleRunnerState state)
 {
     this.TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
 }