コード例 #1
0
ファイル: DrawState.cs プロジェクト: vgaltes/TicTacToe
 public DrawState(TicTacToeConsoleRunnerState state)
 {
     this.TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
 }
コード例 #2
0
ファイル: HumanWinsState.cs プロジェクト: vgaltes/TicTacToe
 public HumanWinsState(TicTacToeConsoleRunnerState state)
 {
     this.TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
 }
コード例 #3
0
 public AskingForPlayerState(TicTacToeConsoleRunnerState state)
 {
     TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
 }
コード例 #4
0
ファイル: PlayingState.cs プロジェクト: vgaltes/TicTacToe
 public PlayingState(TicTacToeConsoleRunnerState state, int initialPlayer)
 {
     this.TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
     this.CurrentPlayer = state.TicTacToeConsoleRunner.Players[initialPlayer - 1];
 }
コード例 #5
0
ファイル: QuitGameState.cs プロジェクト: vgaltes/TicTacToe
 public QuitGameState(TicTacToeConsoleRunnerState state)
 {
     this.TicTacToeConsoleRunner = state.TicTacToeConsoleRunner;
 }