Beispiel #1
0
        internal override bool ValidateGameAction(DiceGame game)
        {
            var board = game.CurrentBoard;

            return(board.IsRerollPossible() && board.Dices.Any(d => d.HasModifier(DiceModifier.CanBeRerolled)));
        }
Beispiel #2
0
 internal override bool ValidateGameAction(DiceGame game)
 {
     return(true);
 }
Beispiel #3
0
 public GameEndedEventArgs(DiceGame game, Player winner)
 {
     Game   = game;
     Winner = winner;
 }
Beispiel #4
0
        internal override void PlayGameAction(DiceGame game)
        {
            var board = game.CurrentBoard;

            board.EndRound();
        }
Beispiel #5
0
 public GameTurnEndedEventArgs(DiceGame diceGame, AGameTurn gameTurn)
 {
     DiceGame = diceGame;
     GameTurn = gameTurn;
 }