vyshnovka / 23-matches

tiny game in Prolog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

tiny game in Prolog


Languages

Language:Prolog 100.0%