Skip to content

Instantly share code, notes, and snippets.

@obie
Forked from patmaddox/gist:25806
Created November 17, 2008 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obie/25818 to your computer and use it in GitHub Desktop.
Save obie/25818 to your computer and use it in GitHub Desktop.
When player wins he should be paid 1-1
When player loses, he is not paid
When player has blackjack, he is paid 1.5-1
Scenario: Winning hand with a $50 bet
Given the player has a score of 19
And the dealer has a score of 18
And the player bet $50
When the hand is played
Then the player wins $50
Scenario: Winning hand with a $50 bet
Given a score of 21 or less
And the score is not blackjack
And the score is not bonus
And the dealer has less than score
And the player bet $50
When the hand is played
Then the player wins $50
Scenario: Blackjack with a $50 bet
Given a hand of :ace, :jack
And the player bet $50
When the game is played
Then the player wins $75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment