joycodes / heads-or-tails

JavaScript Coin Toss Game

Home Page:https://joycodes.github.io/heads-or-tails/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a heads or tails game that will be played by a real person and a computer.

The game should go for 5 rounds and the winner will be determined by who guessed the most rights on the 5 rounds.

example:

round 1:

computer guessed tails and you guessed heads

outcome: heads

you get a 1 and computer gets a 0 (zero)

round 2:

computer guessed tails and you guessed heads

outcome: heads

you get a 2 and computer gets a 0 (zero)

round 3:

computer guessed heads and you guessed heads

outcome: heads

you get a 3 and computer gets a 1

round 4:

computer guessed tails and you guessed heads

outcome: tails

you get a 3 and computer gets a 2

round 5:

computer guessed tails and you guessed heads

outcome: heads

you get a 4 and computer gets a 2

You become a winner in this set because you guessed the most correct predictions

All assignments should be hosted on github pages and links submitted to google classroom

This is the coin side that will be used. They can be found in the images folder

Heads

Heads

Happy Coding :)

About

JavaScript Coin Toss Game

https://joycodes.github.io/heads-or-tails/


Languages

Language:JavaScript 62.4%Language:HTML 20.4%Language:CSS 17.2%