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 runYou can also specify a file with contestant names:
lein run --file resources/names.txtTo run in interactive mode:
lein run --interactiveTo provide a seed for the random number generator:
lein run --seed 12345You can combine the options:
lein run --file resources/names.txt --interactive --seed 12345To run the tests, use the lein test command:
lein test