Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tlmader/auto-blackjack
An automatic Blackjack game using predefined player strategies.
https://github.com/tlmader/auto-blackjack
Last synced: about 1 month ago
JSON representation
An automatic Blackjack game using predefined player strategies.
- Host: GitHub
- URL: https://github.com/tlmader/auto-blackjack
- Owner: tlmader
- Created: 2013-12-02T22:45:31.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-08T20:52:17.000Z (about 10 years ago)
- Last Synced: 2024-04-14T22:56:56.073Z (9 months ago)
- Language: Java
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
autoblackjack
=============University of New Orleans Software Design I Homework Eight – Blackjack
An automatic Blackjack game using predefined player strategies.
To start the game, a dealer deals two cards to everyone. Then the game proceeds in a clockwise fashion. Each player chooses whether to hit or stand. When a player hits, they receive another card. If they stand, they stop receiving cards. If the value of a player’s hand goes above 21, they bust and lose the round.
To keep our game simple, there will only be one dealer and one player, and their only options are to hit or stand. There are other options such as being able to double down, split, surrender their hand, or take insurance. These extra possibilities are not implemented.
The dealer will continue to hit until she busts or her hand has a value of 17 or higher.
The player will be automated and will have a strategy that the user can choose.
There are three strategies: dealer, timid, and aggressive.Dealer: The player will hit until he busts or his hand has a value of 17 or greater.
Timid: The player will hit until he busts or his hand has a value of 14 or greater.
Aggressive: The player will hit until he scores a 21 or busts. Although, if his
hand is worth 20 points, he will not hit since he will certainly bust if another card
is dealt.