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.
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
It is necessary to use Node.js 10.13.0 to run the script. Use the command: ./blackjack.js
at the directory of the script.
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
.