예제 #1
0
 public RoundBuilder(bool tonpuusen = false)
 {
     _gameState = new MahjongGame(tonpuusen);
 }
예제 #2
0
 public int Renchan_Calculation(MahjongGame game)
 {
     return game.Renchan;
 }
예제 #3
0
 public GameState FinishRound_ThrowsExceptionsForInvalidGameState(MahjongGame game)
 {
     game.FinishRound(new RoundResult());
     return game.State;
 }
예제 #4
0
 public int NextRound_UpdatesOyaCorrectly(MahjongGame game)
 {
     game.NextRound();
     return game.Rounds.Last().Oya;
 }
예제 #5
0
 public GameState FinishRound_ResultsInCorrectGameState(MahjongGame game)
 {
     game.FinishRound(new RoundResult{Winner = 0});
     return game.State;
 }
예제 #6
0
 public void NextRound_ThrowsExceptionsForInvalidGameState(MahjongGame game)
 {
     game.NextRound();
 }
예제 #7
0
 public int NextRound_AddsRoundCorrectly(MahjongGame game)
 {
     game.NextRound();
     return game.Rounds.Count;
 }
예제 #8
0
 public GameState GameState_ReturnsCorrectly(MahjongGame game)
 {
     return game.State;
 }
예제 #9
0
 public int Oya_Calculation(MahjongGame game)
 {
     return game.Oya;
 }