Click on play button after going through the instructions:
- Rock
- Paper
- Scissor

- For Rock
- For Paper
- For Scissor




- var computerselection = "";
- var y = (Math.floor(Math.random() * 10) + 1);
- if (y >= 1 && y <= 4) {
- computerselection = "Rock";
- }
- else if (y >= 5 && y <= 7) {
- computerselection = "Paper";
- }
- else {
- computerselection = "Scissor";
- }
- if (x == values[computerselection])
- bootbox.alert("Game Draw--Better Luck Next Time");
- ---------------------------------------------------------------------------------------
- else if (values[computerselection] == 1 && x == 2)
- bootbox.alert("Computer have won Computer Selected " + computerselection);
- --------------------------------------------------------------------------------------------
- else if ((values[computerselection] == 1 && x == 3) || (values[computerselection] == 2 && x == 1) || (values[computerselection] == 3 && x == 2))
- bootbox.alert("Computer have won Computer Selected " + computerselection);
- ----------------------------------------------------------------------------------------------
- else if ((values[computerselection] == 1 && x == 2) || (values[computerselection] == 2 && x == 3) || (values[computerselection] == 3 && x == 1))
- bootbox.alert("You won against computer -- Computer Selected " + computerselection);

Join the conversation! Your thoughts help the community grow.