First, you get the logic right:
- There are two players (either two human, or one human, one machine -- or even two machine)
- Both make a random pick of three possible choices: rock, paper, scissors. You can also think of these as numbers: 0, 1, 2
- When the choices are made, comparisons are done:
- If both picked the same, it's a tie
- rock beats scissors
- paper beats rock
- scissors beat paper
- Based on the comparison, a winner is selected
Then you chose a programming language and start implementing the logic. Use input and output functions and conditions to branch your code in the right path.
Here's some pseudo-code for you:
Choices: { rock, paper, scissors }
print("Rock/Paper/Scissor?")
userInput = readInput()
computerInput = random(Choice)
if (userInput == computerInput)
print("It's a tie!")
else if (userInput > computerInput)
print("You win!")
else
print("Computer win!")
I hope this helps.
Do your implementation then post any specific questions if you're stuck. Good luck! :)