No description
Find a file
2024-12-26 21:21:55 +01:00
DOC.md Documentation almost done 2024-12-25 22:45:29 +01:00
format.cpp Responses should be enums 2024-12-04 12:16:40 +01:00
gen.cpp Implementation successfully got out of the header files 2024-11-07 22:17:35 +01:00
global.hpp Minor improvements 2024-12-26 21:19:57 +01:00
input.cpp Implementation successfully got out of the header files 2024-11-07 22:17:35 +01:00
main.cpp Minor improvements 2024-12-26 21:19:57 +01:00
README.md Better rule wording 2024-12-14 10:53:15 +01:00
solver.cpp Going through possible sequences can be range-based 2024-12-26 21:21:55 +01:00
solver.hpp Minimax implemented without getting weight 2024-12-26 21:18:05 +01:00
validate.cpp Responses should be enums 2024-12-04 12:16:40 +01:00

logik

An implementation of an ancient game of Logik - a color-sequence guessing game.

Rules

The game consists of guessing valid color sequences. After each guess, the game tells you, how many colors were in the right place and how many are in the sequence, but not in the place you guessed them. The catch is, it doesn't tell you the specific positions, but only quantities.

Functionality

You can specify, how long the guessed sequence is and how many colors there can be.

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.