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