#include #include #include #include #include #include "DLASystem.h" using std::cout; using std::endl; // this is a global pointer, which is how we access the system itself DLASystem *sys; int main(int argc, char **argv) { int seed; double stickProbability = 0.5; if (argc != 3) { return 1; } else { seed = std::stoi(argv[1]); stickProbability = std::stod(argv[2]); } cout << "Seed: " << seed << "Stick P: " << stickProbability << endl; std::stringstream str; str << "./out-" << seed << '-' << stickProbability << ".csv"; std::ofstream csv_out(str.str()); // create the system sys = new DLASystem(std::move(csv_out), stickProbability); sys->setSeed(seed); sys->setRunning(); /* * NOTE: We run at max speed as rendering is handled by a different engine so we simply want to hjand * */ while (sys->running) { sys->Update(); } return 0; }