Closed Tmoney2020 closed 4 years ago
Nicely done. I think you would do well to review our Blackjack review and look at the structure of your code.
Nice work also seeing that a for
loop can do more work than just counting up. That is a good insight to have. https://github.com/Tmoney2020/cs-blackjack2/blob/master/Program.cs#L129
Your homework 01 - 04 - Blackjack was marked: Meets Expectations
“Well done!” — via Gavin Stark
In this project, you are creating a playable game of Blackjack. If you haven't played this game ever, or in a while, grab a deck of cards and play a few games.
Objectives
Requirements
Create a single-player blackjack game that plays against the house, i.e., a human player and computer dealer. You are free to create the user interface however you want, but keep it simple for Explorer Mode.
Explorer Mode
General Rules:
[x] The game should be played with a standard deck of playing cards (52).
[x] The house should be dealt two cards, hidden from the player until the house reveals its hand.
[x] The player should be dealt two cards, visible to the player.
[x] The player should have a chance to hit (i.e. be dealt another card) until they decide to stop or they bust (i.e. their total is over 21). At which point they lose regardless of the dealer's hand.
[x] When the player stands, the house reveals its hand and hits (i.e. draw cards) until they have 17 or more.
[x] If dealer goes over 21 the dealer loses.
[x] The player should have two choices: "Hit" and "Stand."
[x] Consider Aces to be worth 11, never 1.
[x] The app should display the winner. For this mode, the winner is who is closer to a blackjack (21) without going over.
[x] There should be an option to play again; this should reset the hands and reshuffle the deck.
Adventure Mode
Epic Mode