Rapleaf Interview Question

Ruby programming

Interview Answer

Anonymous

Aug 17, 2009

Implement a simple game of blackjack. It may use a simple, command- line interface. The program should start by asking how many players are at the table, start each player with $1000, and allow the players to make any integer bet for each deal. The program must implement the core blackjack rules, i.e. players can choose to hit until they go over 21, the dealer must hit on 16 and stay on 17, etc. It must also support more complex rules such as doubling-down and splitting. You are more than welcome to add any sort of functionality you like on top of these basics. We are most interested in seeing a clean codebase that we can readily understand. Please implement in Ruby, and don't hesitate to write with any questions. And please spend no more than one week on this.