Computing: Free Pascal Programming

Marienbad variant of the classic Nim game.


Download Marienbad desktop application (Windows 64bit) Download Marienbad source code (Lazarus/Free Pascal)

Description: Nim is a game, where two players alternately remove matches from a set of matches placed on several heaps and where, depending on what was fixed before starting the game, the player, who takes the last match(es) wins or looses the game. In the Marienbad variant the matches are placed in 4 rows, with 1, 3, 5 and 7 matches respectively. The players may take as many matches as they want, but at least one and all from the same row. The Marienbad PC application supports both Marienbad versions: the Nim-like, where the player who takes the last match(es) wins and the (generally played, as more complex) Misere version, where the player, who takes the last matches, looses. The application is intended for one player, who plays against the program. There are 3 levels, with different computer playing strength available. The player, who begins the game, may be set or randomly chosen by the application. A description of the Marienbad rules and the application usage are included as HTML document, accessible from the application's menu.

Free Pascal features: Handling click events on images. Hiding images to simulate their removal. Changing the color of shapes during run-time.

Screenshot:

Marienbad: A free Nim application for PC

If you like this application, please, support me and this website by signing my guestbook.