luhsra / MinimaxSimulator

Platform independent GUI-based Minimax simulator
https://luhsra.github.io/MinimaxSimulator/
MIT License
7 stars 5 forks source link

[Improvement] Commandline administration #57

Open AiyionPrime opened 3 years ago

AiyionPrime commented 3 years ago

I think it would be a huge improvement if one could control loading the project and memory chunks, running the project as well as exporting memory via commandline parameters. This would greatly improve reliable testing as well as better documentation approaches and reproducibility.

Good starters would be:

Running the project would be an implicit step after loading and before exporting.

prohde commented 3 years ago

So you would like to load a project, load some data into a specified position of the simulated memory, run the project, export (part of) the simulated memory all with a single command-line call?

AiyionPrime commented 3 years ago

Yes, I think that would make the simulator scriptable and allow to write some sort of tests for its projects.

prohde commented 3 years ago

I'd suggest to use picocli as command line argument parser. It seems to be relatively easy to use. At this point it is actively maintained. What are your thought? Would you rather go with Apache Commons CLI? In general, the Apache Java libraries seem to be not much maintained in the last years.

Btw, I already looked into the code and started to make some changes towards the suggestion of a CLI version.

AiyionPrime commented 3 years ago

I'm sorry to have no strong opinions on cli-libraries, as I haven't written proper java code in ages. But picocli appears to be a very well suited candidate and I have a thing for keeping the code short :+1:

prohde commented 3 years ago

Did you already check the PR draft for a CLI version?

AiyionPrime commented 3 years ago

No not yet, but will tomorrow. I didn't occure to me, yet - sorry.