logik/DOC.md
2024-12-25 11:51:42 +01:00

668 B

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