Benezivas / algobattle

Let teams compete by making them create hard instances and fast solvers for problems of your choice. Then pitch these instances and solvers against one another. All language-agnostic.
https://algobattle.org
MIT License
8 stars 3 forks source link

Create results folder when using `algobattle run` if not already existing #151

Closed Benezivas closed 10 months ago

Benezivas commented 10 months ago

When writing a new problem, oftentimes one creates the necessary problem.py, algobattle.toml as well as a dummy solver and generator, that one would like to test. However, the algobattle run cli command expects there to already be a results folder in the same directory if no explicit destination for results is set.

It would be nice if the tool creates the folder on the first run if it is not already present. Currently, it throws an error otherwise.

ImogenBits commented 10 months ago

fyi you can just run algobattle init after creating just the problem.py and algobattle.toml, it will then initialize the rest of the project with a results folder and generator/solver templates.

152 makes it so that this will still not throw an error if you manually initialize the project without a results folder.