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