Skip to content

milesrack/blackjack-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack CLI

Play a game of Blackjack in your terminal.

Compile

gcc blackjack.c -o blackjack

Run

$ ./blackjack
Place your bet (bank: $10000.00): 200
Dealer (?)
+---------+	+---------+	
| ?       |	| 9       |	
|         |	|         |	
|    ?    |	|    ♢    |	
|         |	|         |	
|       ? |	|       9 |	
+---------+	+---------+	
Player (14)
+---------+	+---------+	
| K       |	| 4       |	
|         |	|         |	
|    ♢    |	|    ♠    |	
|         |	|         |	
|       K |	|       4 |	
+---------+	+---------+	
Would you like to [h]it or [s]tand?