Imports System, Microsoft.VisualBasic
Const ROCK As Integer = 1
Const PAPER As Integer = 2
Const SCISSORS As Integer = 3
Dim computerThrow As Integer = Int(Rnd() * 3 +1)
If userthrow = "R" or userthrow = "r" then
If computerThrow = ROCK then
message = "Computer threw rock, it's a tie!"
ElseIf computerThrow = PAPER then
message = "Computer threw paper, computer wins!"
ElseIf computerThrow = SCISSORS then
message = "Computer threw scissors, you win!"
ElseIf userThrow = "P" or userThrow = "p" then
If computerThrow = ROCK then
message = "Computer threw rock, you win!"
ElseIf computerThrow = PAPER then
message = "Computer threw paper, it's a tie!"
ElseIf computerThrow = SCISSORS then
message = "Computer threw scissors, computer wins!"
ElseIf userThrow = "S" or userThrow = "s" then
If computerThrow = ROCK then
message = "Computer threw rock, computer wins!"
ElseIf computerThrow = PAPER then
message = "Computer threw paper, you win!"
ElseIf computerThrow = SCISSORS then
message = "Computer threw scissors, it's a tie!"
Console.WriteLine(message)