Git Product home page Git Product logo

01-04-blackjack's Introduction

01-04 Blackjack


This console app allows you to play blackjack with multiple people. Some features that it includes:

  • Adding players
  • Betting points
  • Hit/Stand/Double/Split/Surrender
  • Bust
  • Dealer drawing phase (deals with dealer having Blackjack at the beginning of a turn allowing players to push )
  • Dealers hidden hand
  • Payouts
  • Nicely designed console app that clears after each command

Some of the technology used:

  • Written entirely in C# on .NET

This project extensively demonstrates the use of classes/methods/Iterations

Assignment Overview:

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

  • Practice the skills and ideas you have learned so far.
  • Effectively use loops, conditionals, and other control structures to implement control flows
  • Demonstrate usage of data structures to model resources.

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:

  • The game should be played with a standard deck of playing cards (52).

  • The house should be dealt two cards, hidden from the player until the house reveals its hand.

  • The player should be dealt two cards, visible to the player.

  • 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.

  • When the player stands, the house reveals its hand and hits (i.e. draw cards) until they have 17 or more.

  • If dealer goes over 21 the dealer loses.

  • The player should have two choices: "Hit" and "Stand."

  • Consider Aces to be worth 11, never 1.

  • The app should display the winner. For this mode, the winner is who is closer to a blackjack (21) without going over.

  • There should be an option to play again; this should reset the hands and reshuffle the deck.

Adventure Mode

  • Reveal one of the house's cards to the player when cards dealt.
  • Consider aces be worth one or eleven.
  • Allow the player to "Split".
  • Improve the win requirements. From Wikipedia:

    Players win by not busting and having a total higher than the dealer, or not busting and having the dealer bust, or getting a blackjack without the dealer getting a blackjack. If the player and dealer have the same total (not counting blackjacks), this is called a "push," and the player typically does not win or lose money on that hand. Otherwise, the dealer wins.

Epic Mode

  • Add a betting system that carries between rounds.
  • Allow the player to "Double down" or "Surrender."
  • Add more players.

01-04-blackjack's People

Contributors

breadkenty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.