Skip to content

Instantly share code, notes, and snippets.

View Raminkeshavarzi's full-sized avatar
🦁
Focusing on hunting new idea

Ramin Keshavarzi Raminkeshavarzi

🦁
Focusing on hunting new idea
View GitHub Profile
@Raminkeshavarzi
Raminkeshavarzi / Style.css
Last active April 22, 2020 19:11
Build your Own Cheatsheet Challenge Project (HTML, CSS)
body{
background: linear-gradient(90deg, #A04474 10%, #2980b9 90%);
}
h1{
text-align:center;
color:azure;
font-family:arial;
font-size:30px;
font-weight:normal;
}
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) =>{