https://github.com/heldrida/cards_exercise
application that displays some cards and allows the user to do some simple card manipulation
https://github.com/heldrida/cards_exercise
Last synced: 3 months ago
JSON representation
application that displays some cards and allows the user to do some simple card manipulation
- Host: GitHub
- URL: https://github.com/heldrida/cards_exercise
- Owner: heldrida
- Created: 2014-07-09T15:36:08.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-10T01:08:50.000Z (almost 11 years ago)
- Last Synced: 2025-02-18T06:09:06.844Z (3 months ago)
- Language: JavaScript
- Size: 961 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
JavaScript exercise
Application that displays some cards and allows the user to do some simple card manipulation.
The Task
The cards start in consecutive order.
Present the user with a simple page that has three buttons “Shuffle”, “Deal” and “Reset”. You may wish to add an image of a deck of cards face down.
When the “Shuffle” button is clicked then the cards in the deck should be placed in a random order.
When the “Deal” button is clicked then five cards are shown face up to the user, taken from the top of the deck. The new cards replace the cards already dealt (if there are any). The used cards are placed on the bottom of the deck.
When the “Reset” button is clicked then all cards are removed from display and the card deck is set back to the original consecutive order.
Live version: http://cards.punkbit.com/