Giter Site home page Giter Site logo

blackjack's People

Contributors

lozand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blackjack's Issues

Standing does not work anymore

Game is broken now due to a change in one of the last two commits. The condition for the while() in PlayerPlay() has changed for the worse.

Refactor Table.PlayerPlay()

This function works for the most part, but it SUCKS to update it. I should find a better way to implement this logic.

Add "Advice" to the game

The player should have an option to get advice and play by "the rules." (e.g., if the player is dealt 2 8's, then if requested, the program should let the player know to split those)

After split, Aces not adding right

blackjack_bug

In the picture shown, there should either be text that says 9 or 19, or simply 19, since that's what you would want to have and stand; not just a 9.

Add "Simulation" mode

There should be a mode where a user can take a deck, set players, and have each player follow a set amount of rules for each given situation. This way, we can see at a deck level, what different player configurations/changes will affect the overall welfare of each player.

Ace cases not fully vetted out

Experienced the following outcome
Dealer has A,A, but doesn't hit. Technically, A,A = 22, but in the case that there are two aces, they should be = 12. Dealer should have it, but didn't.

Add more sophisticated probability logic

Right now, we can only tell the probability of drawing a single card, group of cards, or a high card. In the future, I would like there to be more sophisticated functions like odds of winning/losing, odds of player/dealer getting a blackjack

Create an Input Interface

Received feedback to implement something like this to better extend the game to other UIs and easier to Unit Test

Implement Log Class

The log class should take care of all things that display to the Console. Keep in mind that this should be an interfaced class. Also, I would like this class to take care of colors.
Ideas for colors
-Winning text should be green
-Losing text should be red
-Blue text could be used to show information
-Card displays could be black and white and have a background.

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.