https://github.com/parmsang/blackjack
https://github.com/parmsang/blackjack
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/parmsang/blackjack
- Owner: parmsang
- Created: 2015-09-14T14:58:09.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T16:42:18.000Z (over 10 years ago)
- Last Synced: 2025-02-14T05:15:24.911Z (over 1 year ago)
- Language: Ruby
- Size: 15.3 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Blackjack
---

Task
---
Created a basic single player black jack game. This was a 2-day team project during my time at [Makers Academy](http://www.makersacademy.com/).
Link to our deployed Blackjack app [here](https://pure-refuge-7844.herokuapp.com/)
##Basic rules
```
Player goes bust if over 21
Picture cards are worth 10 points
Ace is worth 1 or 11
Player is dealt minimum 2 cards
Player can continue to hit until he goes bust
```
Technologies Used
---
- Ruby on Rails
- JavaScript
- JQuery
- HTML
- CSS
Tests
---
```
Game
Deck
should respond to #shuffle
should respond to #deck
initialises with a deck of cards
shuffles the deck
Game
should respond to #deal
should respond to #hand
should respond to #winner?
deals a hand
lets player decide to hit
lets player decide to stand
lets player know if he has won the hand
lets player know if he has lost the hand
there is no winner or loser if the hand has not finished
Hand
should respond to #view
has a 2 card hand when created
should respond to #hit with 1 argument
can hit for an extra card
should respond to #total
knows how much its hand is worth
should respond to #stand
ends hand when player stands
raises error if you try to hit when hand has ended
raises error if you try to hit when you have 21 or are bust
Finished in 0.0665 seconds (files took 9.7 seconds to load)
23 examples, 0 failures
```