-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
22 lines (12 loc) · 1.06 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
README
by: Mauricio Roman
date: 21 April 2014
The code in this repository is an entry to meet the Coding Challenge for the Insight Data Engineering Fellows Program, 2014.
Here is the description of the challenge:
"We'd like you to implement a text-based Blackjack program in one of the following programming languages: Java, Clojure, Scala, C, or C++. There should be one player and one dealer. The dealer should hit until his hand value is 17 or greater. You should implement the basic actions of hitting and standing. Implementing the more advanced actions such as splitting is optional. The player should start with 100 chips and must bet at least 1 chip each hand.
Any additional game play features are optional, but welcome."
I opted to submit the challenge using C. The data structures used are stacks for
the deck itself as well as for the hands of the dealer and the player. The program
first creates the total deck using a pre-defined number of decks, then shuffles this
deck a pre-defined number of times, and proceeds to deal the cards to the dealer
and the player.