A simple command-line tool to run a knockout tournament.
To run a tournament, you can use the following command-line options:
Option | Long Option | Description | Default |
---|---|---|---|
-f |
--file |
File with contestant names | resources/names.txt |
-s |
--seed |
Seed for random number generator | nil |
-i |
--interactive |
Run in interactive mode | false |
-h |
--help |
Show help |
To run the tournament with the example names:
lein run
You can also specify a file with contestant names:
lein run --file resources/names.txt
To run in interactive mode:
lein run --interactive
To provide a seed for the random number generator:
lein run --seed 12345
You can combine the options:
lein run --file resources/names.txt --interactive --seed 12345
To run the tests, use the lein test
command:
lein test