Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 768 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 768 Bytes

23 Matches

This repository contains a tiny (kinda) game implemented in Prolog just for training.
Unless, of course, you can say "a game" about "an algorithm".

The essence of the game consists in removing things off the table.
In one move, a player can pick up one, two or three matches. Whoever is forced to pick up the last match loses.
The algorithm is designed in such a way that there is only one single combination of moves that allows you to beat the computer.

Tools

image

Setup

  1. Copy the code.
  2. Paste copied code here.
  3. Type play into the terminal.
  4. Press Run.
  5. Enjoy!