Skip to content

Instantly share code, notes, and snippets.

@NicholasMurray
Last active December 15, 2015 02:39
Show Gist options
  • Save NicholasMurray/5188775 to your computer and use it in GitHub Desktop.
Save NicholasMurray/5188775 to your computer and use it in GitHub Desktop.
RockPaperScissorsHTMLInputAndOutput
<p>
<span>The human has chosen:</span><br /><br />
<input type="radio" name="human-choice" value="rock">Rock<br />
<input type="radio" name="human-choice" value="paper">Paper<br />
<input type="radio" name="human-choice" value="scissors">Scissors<br /><br />
<input type="button" id="play-game" value="Play" /><br /><br />
</p>
<p>
The computer has chosen: <i><span id="computer-choice"></span></i>
</p>
<p>
<br /><br />
And the winner is: <span id="winner"></span>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment