This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
background: linear-gradient(90deg, #A04474 10%, #2980b9 90%); | |
} | |
h1{ | |
text-align:center; | |
color:azure; | |
font-family:arial; | |
font-size:30px; | |
font-weight:normal; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let humanScore = 0; | |
let computerScore = 0; | |
let currentRoundNumber = 1; | |
// The random number: | |
let generateTarget = () => { | |
return Math.floor(Math.random()*9); | |
}; | |
// Compare the guess number between computer, user and target number | |
let compareGuesses = (human, computer, target) =>{ |