From 5b908ef7dd77dcd9e98cbfc0adc320e153b69cf2 Mon Sep 17 00:00:00 2001 From: Matuush Date: Thu, 28 Nov 2024 17:18:25 +0100 Subject: [PATCH] README now contains commandline arguments --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2cfcee5..e0c265f 100644 --- a/README.md +++ b/README.md @@ -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 ` : Length of guessed sequence +* `-m ` : 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*.