'Welcome and intro to the game TextWindow.WriteLine("Welcome to the game of rock, paper, scisors!") TextWindow.WriteLine("When prompted, enter 1 for rock, 2 for paper, 3 for scisors.") 'Prompt for and get the player's choices TextWindow.Write("Enter player one's choice: ") p1Choice = TextWindow.ReadNumber() TextWindow.Write("Enter player two's choice: ") p2Choice = TextWindow.ReadNumber() 'Determine the winner 'First check for a tie If p1Choice = p2Choice Then TextWindow.WriteLine("It's a tie!") Else If p1Choice = 1 And p2Choice = 3 Then winner = 1 Elseif p1Choice = 3 and p2Choice = 1 then winner = 2 ElseIf p1Choice > p2Choice then winner = 1 else winner = 2 EndIf TextWindow.WriteLine("Player #" + winner + " wins!") EndIf