View Single Post
Old 11-06-2018, 12:56 AM   #40
zot
 
Join Date: May 2018
Default New simulator version

Nils was kind enough to give me the simulator source code. It was written in a old mainframe language called C/AL, so I hand-translated it into Julia, a fantastic new programming language used mostly in data science, machine learning, statistics, and the like. I also added some tweaks and updates, like double strikes for UC V warriors and Reptile Men UC warriors and brawlers. The simulator still doesn't do HTH yet.

One problem I ran into was the simulator overheating my CPU and shutting off my laptop so I put in a one-millisecond delay every so often which did the trick. If you run this on your own laptop and it crashes you'll want to up the frequency of sleeping. To run it you just need to install Julia 1.X, make sure the simulator file is in the current directory, and execute a command like this:

julia -O 3 tfttesting.jl -points 36 > sim-36.csv

This will put comma-separated values into sim-36.csv, which you can open in (or import into) a spreadsheet.

Here's the new code.

And here's the latest output.
zot is offline   Reply With Quote