AwesomeComputers.Computers.PC.PlayGame C# (CSharp) Метод

PlayGame() публичный Метод

public PlayGame ( int guessNumber ) : void
guessNumber int
Результат void
        public void PlayGame(int guessNumber)
        {
            //TODO: Implement this stuff - copy and refactor the code from the original
            this.cpu.SaveRandomValueToTheRAM(1, 10);
            var number = this.ram.LoadValue();
            if (number + 1 != guessNumber + 1) this.videoCard.Draw(string.Format("You didn't guess the number {0}.", number));
            else this.videoCard.Draw("You win!");
        }
    }