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
ElseIf computerThrow = Paper Then
ElseIf computerThrow = SCISSORS Then
If userThrow = "P" Or userThrow "p" Then
If computerThrow = PAPER Then
ElseIf computerThrow = ROCK Then
ElseIf computerThrow = SCISSORS
messege = "Scissors wins"
If userThrow = "S" Or userThrow "s" Then
If computerThrow = SCISSORS Then
If computerThrow = PAPER Then
messege = "Scissors wins"
If computerThrow = ROCK Then
Console.WriteLine("The result is" & messege )