Skip to content

Brute force iterator for combinatorial explosion probability study in blackjack

Notifications You must be signed in to change notification settings

adrian-lorenzo/brute-force-blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brute-force-blackjack

Project for algorithm analysis practice of brute-force strategies in Go, Javascript and Python

CLI program that calculates the probability of not passing if you have one card when taking more in blackjack.


.\blackjack.js [-help] [-intense [FIRST_CARD]] [-nopick [NUMBER OF DRAWS]] [FIRST_CARD] [NUMBER OF DRAWS]

Calculates the probability of not passing if you have one card when taking more in blackjack.
				
Options:
				
-help           Prints information about the command.
-intense        Generates the probability of not passing from 1 to 8 cards more taken.
-nopick         The command ignores [FIRST_CARD] argument and calculates the probability
		without taking any card. It works with -intense option.
									

Go

Remember to set the project at $GOPATH/src/github.com/adrianlorenzodev/brute-force/GO/. You can also get it with the following command go get github.com:adrianlorenzodev/brute-force/GO.

More info in How To Write Go Code

We have provided a build script (builder.sh) to build the program easily, generating the program binary (blackjack). To run it use the following command: ./blackjack

Javascript

It is necessary to use Node.js 10.13.0 to run the script. Use the command: ./blackjack.jsat the directory of the script.

Python

In this case,you will have to use the last version Python 3 to run the script. At the directory of the script, the command to run it is ./blackjack.py.

About

Brute force iterator for combinatorial explosion probability study in blackjack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published