This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Reilly David Stone
over 10 years

{solved} Please help im never this confused

please help i dont know what to do now

/*var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
    computerChoice = "rock";
} else if(computerChoice <= 0.67) {
    computerChoice = "paper";
} else {
    computerChoice = "scissors";
}*/

/*var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
    computerChoice = "rock";
} else if(computerChoice <= 0.67) {
    computerChoice = "paper";
} else {
    computerChoice = "scissors";
}*/

Answer 51f2e666631fe9a64c005b88

0 votes

Permalink

Hi Reilly, I’m not sure which part you are at now. The code you posted looks fine, except that it is duplicated, was that intended or was that too much mouse clicking?

points
Submitted by Judy
over 10 years

3 comments

Reilly David Stone over 10 years

i figured it out and the duplicate wasnt intended

Judy over 10 years

Great! If you have any other questions, just ask.

Reilly David Stone over 10 years

thanks