Beispiel #1
0
        public static void Main(string[] args)
        {
            var consoleReader = new ConsoleReader();
            var player        = new Player(consoleReader);
            var scoreCard     = new ScoreCard();
            var rng           = new Rng();
            var yatzy         = new Game(player, scoreCard, rng);

            Display.WelcomeMessage();
            yatzy.PlayGame();
        }
Beispiel #2
0
 public Game(Player player, ScoreCard scoreCard, IRng rng)
 {
     Rng        = rng;
     _player    = player;
     _scoreCard = scoreCard;
 }