This commit is contained in:
Matúš Púll 2024-12-25 11:51:42 +01:00
parent 774f1ad514
commit 7211ca0573

19
DOC.md Normal file
View file

@ -0,0 +1,19 @@
# logik documentation
## Game
At first, the game asks the player for game specs.
That can be done either by command-line argumenst, or if not specified - by stdin prompt.
Then it has two modes:
### Human mode
In this mode, the player has to deduce the secret sequence, which is done by guessing sequences like it.
Inside of the game, all that is happening is a loop consisting of taking user input, generating a response and outputting it.
### Bot mode
### Response generating
When a guess is entered, all that is done to make a response is comparing that guess to the secret sequence.
First it counts right colors, then the out-of-place right colors.
## Solver