Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 717 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 717 Bytes

CoinTossGame

This projects is lisenced under Creative Commons so it can be re-used and re-dristibuted freely without any conflicts.

Functioning of the code:

HTML: The basic structure: A simple button which has "tossCoin()" which is responsible for activating and toggling the JS, which is used to play the game. Text as heading as Page Heading and Disclamier (can be ignored) and paragraphs as a simple instruction to play it and disclamier text.

CSS: Adds all the styling to the elements of the webpage/game.

JS: When the button is pressed, the function linked to it activates and generates a random number which greater than or equal to 1 and cannot be smaller than 2.