gingeleski / ld-casino-sim Goto Github PK
View Code? Open in Web Editor NEWComprehensive simulator for live dealer casino games.
Comprehensive simulator for live dealer casino games.
Write basic logic and speed test for the "21+3" and "Perfect Pairs" side bets in blackjack.
Currently, one run to analyze a full 8-deck shoe for "Perfect Pairs" EV takes like 0.04 seconds.
Analyzing the same amount of cards for the "21+3" side bet takes roughly 45 seconds. This is unacceptable.
I suspect the time suck is the logic to tell whether there's a straight in the hand. It involves making like 9 or more permutations of a string, and does that for every permutation of 3 cards from the shoe, so you can see how this gets slow.
Refactor the analysis of straights to cut down runtime. Thinking of picking one card, seeing whether there's a predecessor or successor card also in the hand, then checking if the final card is the next spot.
Make sure this works and runs through the default 12 shoes.
Eventually blackjack.py
will need to be split out as the file is getting a little monstrous.
But, for now, merge the code from pp_plus3.py
into blackjack.py
and delete that file. We'll implement timing/benchmarking into normal blackjack execution at a later point.
Move applicable code from private casino project into this repo.
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.