internal override bool ValidateGameAction(DiceGame game) { var board = game.CurrentBoard; return(board.IsRerollPossible() && board.Dices.Any(d => d.HasModifier(DiceModifier.CanBeRerolled))); }
internal override bool ValidateGameAction(DiceGame game) { return(true); }
public GameEndedEventArgs(DiceGame game, Player winner) { Game = game; Winner = winner; }
internal override void PlayGameAction(DiceGame game) { var board = game.CurrentBoard; board.EndRound(); }
public GameTurnEndedEventArgs(DiceGame diceGame, AGameTurn gameTurn) { DiceGame = diceGame; GameTurn = gameTurn; }