lozand / blackjack Goto Github PK
View Code? Open in Web Editor NEWGame of blackjack with the intent of recording probabilities. Used as an exercise in C# as well as probability.
Game of blackjack with the intent of recording probabilities. Used as an exercise in C# as well as probability.
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.
A player should have an option to double, but as of yet, this functionality hasn't been built out.
Right now, the user can only play as "Daniel."
These "bots" should play by "the rules."
This is on the primary purposes of the project
This function works for the most part, but it SUCKS to update it. I should find a better way to implement this logic.
We run into issues where a player is playing two hands and loses one. Sometimes, the player still gets double his money back, or no money at all. Also, doubling on a split hand presents issues as well.
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)
"Split" is not implemented
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.
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.
Currently, there is a display class that handles all output. This should be interface'd
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
A User should be able to bet in a game of blackjack
At this moment in time, I'm not sure if we should implement a full user settings class, OR just allow the user to specify how many users are in the game, and what their names are.
A player should be able to play more than one hand if more seats are available.
Received feedback to implement something like this to better extend the game to other UIs and easier to Unit Test
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.
Title pretty much says it all. It will be easier and possible-er to unit test.
There should be a full-fledged testing suite.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.