Miscellaneous tools for the Final Fantasy IX Tetra Master card game
The card game (from Final Fantasy IX) relies on a lot of implicit probabilities, and this little binary served as the basis for the article describing it (in French) on my site.
Currently, the project contains only one utility (used to write the following article). However, it's possible that the software will be enriched with new features as I continue to build on my experience with the Tetra Master.
vprob
pessimistically calculates an attacking card's probability of victory
based on its statistics. vprob
pessimistically calculates an attacking card's
probability of victory based on its statistics.
invocation:
./tetra.exe vprob --attacker {attacker_stats} --defender {defender_stats}
The statistics are the same as in FFIX: PKPP
:
P
is a number in hexadecimal from0
toF
K
is the kind of the cardP
,M
,X
orA
.
Setting up a development environment is quite common. We recommend setting up a local switch to collect dependencies locally. Here are the commands to enter to initiate the environment:
opam update
opam switch create . ocaml-base-compiler.5.0.0 --deps-only -y
eval $(opam env)
After initializing the switch, you can collect the development and project dependencies using make:
make deps