Two players, opposite each other, tap their fist in their open palm three times (saying Rock, Paper, Scissors) and then show one of three possible gestures.
Rock, Paper, Scissors Hand Positions
Write a program to play RPS (Rock, Paper, Scissors) against a user. The user should indicate rock, paper, or scissors via radio buttons or a select box (your choice). In the PHP script, the computer will secretly randomly pick Rock, Paper, or Scissors, and announce who has won as well as the basis for determining the winner. For example:
Computer wins! Rock crushes scissors.Feel free to use images. If you do so, appropriately cite where you got them from.
Player wins! Paper wraps rock.
Player wins! Scissors cut paper.
Tie game! No one wins.
Your HTML should be in a file called rps.html, and your PHP should be in a file called rps.php.
You should have a button that provides the user with the opportunity to play again. This button should link back to the rps.html page.