Making MicroWorld a command line executable tool.
Find a file
2020-06-02 23:02:11 +01:00
doc Initial commit. It works, but there may yet be some changes. 2020-06-02 22:46:41 +01:00
src/mw_cli Initial commit. It works, but there may yet be some changes. 2020-06-02 22:46:41 +01:00
test/mw_cli Initial commit. It works, but there may yet be some changes. 2020-06-02 22:46:41 +01:00
.gitignore Initial commit. It works, but there may yet be some changes. 2020-06-02 22:46:41 +01:00
CHANGELOG.md Initial commit. It works, but there may yet be some changes. 2020-06-02 22:46:41 +01:00
LICENSE Set license to GPL and updated README. 2020-06-02 23:02:11 +01:00
project.clj Set license to GPL and updated README. 2020-06-02 23:02:11 +01:00
README.md Set license to GPL and updated README. 2020-06-02 23:02:11 +01:00

mw-cli

Making MicroWorld a command line executable tool. Essentially, a mechanism to run a simulation for fixed number of generations, and then dump the result into an edn file.

For more information, see mw-parser and mw-engine.

Installation

Download from http://example.com/FIXME.

Usage

$ java -jar mw-cli-0.1.0-standalone.jar [options]

where options include:

  • -d, --display FILE Display generated world as HTML file
  • -g, --generations true The number of generations to run.
  • -h, --help Show this message
  • -m, --heightmap FILE The path to the raster (gif, jpeg or png) file containing the heightmap to load.
  • -o, --output FILE The path to the EDN file to which to output the result.
  • -r, --rules true The path to the text file containing the rules to run.
  • -v, --verbosity [LEVEL] The amount of logging information to output; an integer between 1 and 4.

Examples

java -jar mw-cli-0.1.6-SNAPSHOT-standalone.jar \
    --heightmap isle_of_man.png --output isle_of_man.edn \
    --rules settlement.txt -g100 -v4 \
    --display isle_of_man.html

Bugs

Probably.

License

Copyright © 2020 Simon Brooke

Distributed under the terms of the GNU General Public License v2