Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbrowns/dam-02-22
https://github.com/gbrowns/dam-02-22
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gbrowns/dam-02-22
- Owner: gbrowns
- Created: 2022-06-23T18:17:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-23T18:48:05.000Z (over 2 years ago)
- Last Synced: 2024-10-21T13:55:32.602Z (3 months ago)
- Language: JavaScript
- Size: 134 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# counter
Clone the counter template code from here: https://github.com/apprenticecloud/counter
In this assignment your are supposed to add functionality for the `+10`, `+15`, `+20` buttons
The `+5` button functionality is already done for you as an example.
Description of what should happen when the buttons are clicked is described below.
the value in the `
` tag should increment based on the value of the button clicked
e.g;
if the value in the button is `+10` it should take the previous value in the `
` tag and increment 10 to it.
this is also what should happen if the `+20` button is clicked. The previous value should be taken and 20 added onto it.__NOTE:__ Stick to the function approach because that is what we covered today and it would suite you best if you deeply understood functions.
# Advanced Assignment
## Heads or Tails
For those of you who feel the challenge above is a basic assignment and you completed it within a split second here is some juice.
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__
__ALSO NOTE:__ for the advanced assignment you will need to start off from scratch i.e; HTML, CSS and JS. Push it to its' own github repository. Don't mix the 2 assignments.
__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 __assets/images__ folder
![Heads](./assets/images/head-side.png)
![Heads](./assets/images/tail-side.png)
Happy Coding :)