logik/README.md

1.3 KiB

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.