https://github.com/trygveaa/blackjack-java
Simple Blackjack implementation in Java
https://github.com/trygveaa/blackjack-java
Last synced: 8 months ago
JSON representation
Simple Blackjack implementation in Java
- Host: GitHub
- URL: https://github.com/trygveaa/blackjack-java
- Owner: trygveaa
- Created: 2018-02-05T23:24:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-06T09:00:47.000Z (over 8 years ago)
- Last Synced: 2025-03-01T04:24:22.725Z (over 1 year ago)
- Language: Java
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blackjack
Simple Blackjack implementation in Java. Creates a random deck of cards, or
takes in a file with a list of cards, and plays a round. Prints the winner and
the resulting hands of the player and the dealer.
## Example
Play with a random deck of cards:
```
$ java -jar target/blackjack-1.0-SNAPSHOT.jar
> dealer
> sam: C9, D5, CJ
> dealer: H10, H6
```
Or create a file with a list of cards and use that:
```
$ echo CA, D5, H9, HQ, S8 > input.txt
$ java -jar target/blackjack-1.0-SNAPSHOT.jar input.txt
> sam
> sam: CA, H9
> dealer: D5, HQ, S8
```