Skip to content

Marienbad's game. This abstract combinatorial board game, of which there are several variants, is played with seeds, dominoes, tokens, cards, matches, ...

kounen/Matchstick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matchstick

alt text

This game is actually called Marienbad's game. There are 2 players, here a human and an AI. The winner is the one who doesn't pull out the last match. In short, the one who loses is the one who takes the last match off the board. The first row always consists of a single match, the number of which increases by two with each row down. The number of rows is chosen according to parameter 1. Parameter 2 corresponds to the maximum number of matches that can be removed in each round. Removed matches will always be removed from right to left. Good game and good luck!

Usage

./matchstick lines matches

Description

lines is a positive line number > 1 or < 100.
matches is a positive maximum number matches > 0.

Option

"-h" to display the help page.

About

Marienbad's game. This abstract combinatorial board game, of which there are several variants, is played with seeds, dominoes, tokens, cards, matches, ...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published