#
March 26, 2013 at 4:12 am

Help with little exercise

I start studying Javascript and found exercise.

Have to make a game, here are condition:

1) Asking the user which option they want to pick.

2) We now need the computer to make a choice.

3) We need to somehow translate this random number into a random choice of rock, paper, or scissors.

If computerChoice is between 0 and 0.33, make computerChoice equal to rock.

If computerChoice is between 0.34 and 0.66, make computerChoice equal to paper.

If computerChoice is between 0.67 and 1, make computerChoice equal to scissors.

I don’t even know where I made a mistake :(((

http://dabblet.com/gist/5243855