No description
Find a file
2024-12-11 08:03:32 +01:00
format.cpp Responses should be enums 2024-12-04 12:16:40 +01:00
game.cpp std::endl into \n 2024-12-04 12:46:56 +01:00
gen.cpp Implementation successfully got out of the header files 2024-11-07 22:17:35 +01:00
global.hpp Game state implemented in separate .cpp file 2024-12-04 12:29:54 +01:00
input.cpp Implementation successfully got out of the header files 2024-11-07 22:17:35 +01:00
main.cpp Guess-count macro 2024-12-06 23:59:27 +01:00
README.md README now contains commandline arguments 2024-11-28 17:18:25 +01:00
solver.cpp Brute force is now implemented within minimax 2024-12-11 08:03:32 +01:00
solver.hpp Game state implemented in separate .cpp file 2024-12-04 12:29:54 +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 which is which.

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.