8000 GitHub - joycodes/heads-or-tails: JavaScript Coin Toss Game
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

joycodes/heads-or-tails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0