diff --git a/DOC.md b/DOC.md new file mode 100644 index 0000000..70192be --- /dev/null +++ b/DOC.md @@ -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