Please help me find the solution


#1


Replace this line with your code.


#2

var alert('This game is case sensetive!');

var ready = prompt('Are you ready to play?, please type "yes"');

if (ready =='yes'){
cosole.log(alert('Great, let\'s start?'));}
else {
console.log('We are going to miss you');
}
var pick = prompt('Please pick; Rock, Paper or Scissor?');

var computer = math.random();
if(computer <= .33){
computer ='Rock';
}
else if (computer <= .67){
computer ='Paper';
}
else{
computer ='Scissor';
}
console.log (pick+computer);

var first=pick;
var second=computer;

function result (first,second){

console.log(first+second);

if( first == second ){
    return 'Tie';
}   
else if(first=='Paper'+ second=='Rock'){
    return 'Paper wins';
}   
else if(first=='Scissor'+ second=='Rock'){
    return 'Rock wins';
}
else if(first=='Scissor' + second =='Paper'){
    return 'Scissor wins';
}  
else {
    return 'null';
}
};
result(first,second);

#3

What's it doing differently from what you want? What's missing? What are you stuck on?
Please describe what it is you want to know, ask questions


#4

Hi ionatan, it is not firing out anything. This is suppose to be a game.


#5

I really don't know what you mean by that. But if I try to run what you have posted then the result is a syntax error at line 1


#6

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