I'm working on an a rock, paper, scissors game in Javascript, I've tried googling other examples of similar rock, paper, scissors games and they all pop up the same code. (Using Math.random) The instructions for my game are a little bit more precise.
var choice = prompt("Please enter rock, paper, or scissors");
var min=1,max=3;
var x=Math.floor((Math.random() * 3) + 1);
if(x==1)
chosen='Rock';
if(x==2)
chosen='Paper';
if(x==3)
chosen='Scissor';
document.write("The Computer chose "+chosen);
document.write("<p>You chose "+choice);
How can I compare what the computer has entered with what the user has entered since the user isn't entering a numerical value?