README now contains commandline arguments

This commit is contained in:
Matúš Púll 2024-11-28 17:18:25 +01:00
parent 3d359cef83
commit 5b908ef7dd

View file

@ -18,3 +18,16 @@ The game has multiple modes:
* **Player mode**: Try your best to guess the random generated sequence of colors.
* **Bot mode**: Try to outsmart my bot with a sequence, which he will try to guess.
* **Test mode**: Watch the bot against a random sequence.
## Commandline arguments
* `-n <number>` : Length of guessed sequence
* `-m <number>` : Number of colors to play with
* `-p [human/bot]` : Who plays the game
* `-l [y/n]` : Whether you want to see what the bot learns
* `-g [human/random]` : Who generates the guessed sequence (If human plays, this is ignored and the sequence is random)
## Usage
Every parameter, which is not specified in the commandline will be prompted.
This can be combined as you like.
If `human` generation was specified, the game will ask for the sequence.
All sequence inputting is as a sequence of space-separated numbers from 0 to *M-1*.