var xzy = 1;
var score = 0;
var xyz = 2;
var zyx = 3;
var kento = "hi ";

function b() {
  var j = prompt("what is your name");

  if (j === "Kento") {
    score++;
    score++;
    score++;
    score++;
    score++;
    score++;
    score++;
    score++;
    score++;
    score++;
    alert("You win");
  } //end of if
  else if (j === "lucas") {
    score--;
    score--;
    score--;
    score--;
    score--;
    score--;
    score--;
    score--;
    score--;
    score--;
    alert("sorry this game is temporarily closed");
  } //end of else if
  else {
    alert("welcome " + j);
 var t = prompt("If you lose in a video game would you play again or rage");     
    
if (t=== "play again"){
  alert("good answer");
  score++;
   var o = prompt("what is pi?");
  
  if (o=== "π"){
  alert("good answer");
  score++;
   var q = prompt(" what is 67x67?") ;
  
  if (q=== "4489"){
  alert("good answer");
  score++;
   var g = prompt(" what is 92x63?") ;
  
  if (g=== "5796"){
  alert("good answer");
   score++;
    var d = prompt(" what is 31x83?") ;
  
  if (d=== "2573"){
  alert("good answer");
 score++;
    var fg = prompt(" what is 36x36?") ;
  
  if (fg=== "1296"){
  alert("good answer");
 score++;
 var π = prompt(" what is 29x87?") ;
  
  if (π=== "2523"){
  alert("good answer");
 score++;
 score++;
 score++;
 score++;
 score++;
 score++;
 score++;
 score++;
 score++;
 score++;
 alert("you win");
  }
  
    else{alert("bad answer")}
 score--;
  }

 
  }
  
    else{alert("bad answer")}
       score--;
  }
  
    else{alert("bad answer")}
       score--;
  
  }
  
    else{alert("bad answer")}
   score--;
  }
  
 
    
  else{ alert("i'm sorry that's not the answer i was looking for"); 
        score--;
       }

  
}//end of if
else if (t=== "rage"){
   score--;
  alert("bad answer");
  
}//end of else if
 
else{
   score--;
  alert("bad answer");
  
}//end of else
  
    
  } //end of welcome else

} //end of function




function pi() { 
alert("welcome");

    var a = prompt("How many digits of pi can you remember after 3.?"); 

if (a === "1") {
   score++;
var b = prompt (" ");

if (b === "4"){
 score++;
var c = prompt(" ");
 
 if (c === "1"){
 score++;
 var d = prompt(" ");
 
 if (d === "5"){
 score++;
var e = prompt(" ");
 
 if (e === "9"){
 score++;
 var f = prompt(" ");
 
 if (f === "2"){
 score++;
 var g = prompt(" ");
 
 if (g === "6"){
 score++;
 var h = prompt(" ");
 
 if (h === "5"){
 score++;
 var i = prompt(" ");
 
 if (i === "3"){
 score++;
 var j = prompt(" ");
 
 if (j === "5"){
 score++;
 var k = prompt(" ");
 
 if (k === "8"){
 score++;
 var l = prompt(" ");
 
 if (l === "9"){
 score++;
 var m = prompt(" ");
 
 if (m === "7"){
 score++;
 var n = prompt(" ");
 
 if (n === "9"){
 score++;
  var o = prompt(" ");
 
 if (o === "3"){
 score++;
var p = prompt(" ");
 
 if (p === "2"){
 score++;
var q = prompt(" ");
 
 if (q === "3"){
 score++;
 
var r = prompt(" ");
 
 if (r === "8"){
 score++;
 
var s = prompt(" ");
 
 if (s === "4"){
 score++;
 
var t = prompt(" ");
 
 if (t === "6"){
 score++;
 
var u = prompt(" ");
 
 if (u === "2"){
 score++;
 
var v = prompt(" ");
 
 if (v === "6"){
 score++;
 var w = prompt(" ");
 
 if (w === "4"){
 score++;
 
var x = prompt(" ");
 
 if (x === "3"){
 score++;
 
var y = prompt(" ");
 
 if (y === "3"){
 score++;
 
var z = prompt(" ");
 
 if (z === "8"){
 score++;
 
var aa = prompt(" ");
 
 if (aa === "3"){
 score++;
 
var bb = prompt(" ");
 
 if (bb === "2"){
 score++;
 
var cc = prompt(" ");
 
 if (cc === "7"){
 score++;
 
var dd = prompt(" ");
 
 if (dd === "9"){
 score++;
 
var ee = prompt(" ");
 
 if (ee === "5"){
 score++;
 
var ff = prompt(" ");
 
 if (ff === "0"){
 score++;
 
var gg = prompt(" ");
 
 if (gg === "2"){
 score++;
 
var hh = prompt(" ");
 
 if (hh === "8"){
 score++;
 
var ii = prompt(" ");
 
 if (ii === "8"){
 score++;
 
var jj = prompt(" ");
 
 if (jj === "4"){
 score++;
 
var kk = prompt(" ");
 
 if (kk === "1"){
 score++;
 
var ll = prompt(" ");
 
 if (ll === "9"){
 score++;
 
var mm = prompt(" ");
 
 if (mm === "7"){
 score++;
 
var nn = prompt(" ");
 
 if (nn === "1"){
 score++;
 
var oo = prompt(" ");
 
 if (oo === "6"){
 score++;
 
var pp = prompt(" ");
 
 if (pp === "9"){
 score++;
 
var qq = prompt(" ");
 
 if (qq === "3"){
 score++;
 
var rr = prompt(" ");
 
 if (rr === "9"){
 score++;
 
var ss = prompt(" ");
 
 if (ss === "9"){
 score++;
 
var tt = prompt(" ");
 
 if (tt === "3"){
 score++;
 
var uu = prompt(" ");
 
 if (uu === "7"){
 score++;
 
var vv = prompt(" ");
 
 if (vv === "5"){
 score++;
 
 var ww = prompt(" ");
 
 if (ww === "1"){
 score++;
 
 var xx = prompt(" ");
 
 if (xx === "0"){
 score++;
 
 var yy = prompt(" ");
 
 if (yy === "5"){
 score++;
 
 var zz = prompt(" ");
 
 if (zz === "8"){
 score++;
 
 var aaa = prompt(" ");
 
 if (aaa === "2"){
 score++;
 
 var bbb = prompt(" ");
 
 if (bbb === "0"){
 score++;
 
 var ccc = prompt(" ");
 
 if (ccc === "9"){
 score++;
 
 var ddd = prompt(" ");
 
 if (ddd === "7"){
 score++;
 
 var eee = prompt(" ");
 
 if (eee === "4"){
 score++;

var fff = prompt(" ");
 
 if (fff === "9"){
 score++;

var ggg = prompt(" ");
 
 if (ggg === "4"){
 score++;

var hhh = prompt(" ");
 
 if (hhh === "4"){
 score++;

var iii = prompt(" ");
 
 if (iii === "5"){
 score++;

var jjj = prompt(" ");
 
 if (jjj === "9"){
 score++;

var kkk = prompt(" ");
 
 if (kkk === "2"){
 score++;

var lll = prompt(" ");
 
 if (lll === "3"){
 score++;

var mmm = prompt(" ");
 
 if (mmm === "0"){
 score++;

var nnn = prompt(" ");
 
 if (nnn === "7"){
 score++;

var ooo = prompt(" ");
 
 if (ooo === "8"){
 score++;

var ppp = prompt(" ");
 
 if (ppp === "1"){
 score++;

var qqq = prompt(" ");
 
 if (qqq === "6"){
 score++;

var rrr = prompt(" ");
 
 if (rrr === "4"){
 score++;
var sss = prompt(" ");
 
 if (sss === "0"){
 score++;

var ttt = prompt(" ");
 
 if (ttt === "6"){
 score++;

var uuu = prompt(" ");
 
 if (uuu === "2"){
 score++;

var vvv = prompt(" ");
 
 if (vvv === "8"){
 score++;

var www = prompt(" ");
 
 if (www === "6"){
 score++;

var xxx = prompt(" ");
 
 if (xxx === "2"){
 score++;

var yyy = prompt(" ");
 
 if (yyy === "0"){
 score++;

var zzz = prompt(" ");
 
 if (zzz === "8"){
 score++;

var aaaa = prompt(" ");
 
 if (aaaa === "9"){
 score++;

var bbbb = prompt(" ");
 
 if (bbbb === "9"){
 score++;

var cccc = prompt(" ");
 
 if (cccc === "8"){
 score++;

var dddd = prompt(" ");
 
 if (dddd === "6"){
 score++;

var eeee = prompt(" ");
 
 if (eeee === "2"){
 score++;

var ffff = prompt(" ");
 
 if (ffff === "0"){
 score++;


 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   

 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   

 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
   score--;
  alert("you lose");
}   
 }
else{
   score--;
  alert("you lose");
} 
 }
else{
   score--;
  alert("you lose");
} 
 }
else{
   score--;
  alert("you lose");
} 
 }
else{
   score--;
  alert("you lose");
} 
 }
else{ 
score--;

  alert("you lose");
}

 }
else{
  score--;
  alert("you lose");
} 
 }
else{
  score--;
  alert("you lose");
} 
 }
else{
  score--;
  alert("you lose");
} 
 }
else{
  score--;
  alert("you lose");
} 
 }
else{
  score--;
  alert("you lose");
} 
 }
else{
  score--;
  alert("you lose");
}   
 }
else{
  score--;
  alert("you lose");
} 
 }
else{
  score--;
  alert("you lose");
}
}
else{
  score--;
  alert("you lose");
}

}

else {
  score--;
  alert("you lose");

}  
                     }









function j() {
  alert("your score is "+score);
}

function abc() {

alert("welcome");
alert("can you say the first 5 english words in alphabetical order (do not capitalize words!)");
var aardvark = prompt("#1");

if (aardvark === "aardvark"){

score++;

var aardwolf = prompt("#2");

if (aardwolf === "aardwolf"){

score++;

var aasvogel = prompt("#3");

if (aasvogel === "aasvogel"){

score++;

var abacuses = prompt("#4");

if (abacuses == "abacuses"){

score++;



var abalones = prompt("#5");

if (abalones === "abalones"){

score++;


alert("you win")
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;
score++;

}




}


else{
  alert("you lose!")

score--;







}

}


else{
  alert("you lose!")

score--;







}

}


else{
  alert("you lose!")

score--;







}

}


else{
  alert("you lose!")

score--;







}


}






