Exemplo n.º 1
0
        public void Play(int guessNumber)
        {
            this.Cpu.GenerateRandomNumber(1, 10);
            var number = Ram.LoadValue();

            if (number + 1 != guessNumber + 1)
            {
                this.Motherboard.DrawOnVideoCard(YouDidNotGuess + $"{number}.");
            }
            else
            {
                this.Motherboard.DrawOnVideoCard(YouWin);
            }
        }