Ask again for userChoice instead of "Result is a tie!"


#1

Hi, I wanted to replace the "Result is a tie!" by asking again for userChoice, I passed through some options (from the most obvious written below) but my code still get blocked on this line. I don't have a slightest idea how to manage it. Do you? Thanks.

var compare=function(choice1,choice2){
if(choice1===choice2){
var userChoice;
}

`


#2

That function only compares. It shouldn't be controlling how the game is played, it just determines the winner of two choices.

Instead, take input and compare until there is a winner.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.