This repository aims to provide some tools to check, generate and design a board for the Game Noch mal!. The rules for the game can be found here.
The generateboard.py script allows to generate a board via backtracking. For reproducible results a seeded random
number generator is used. The algorithm is configurable and the available parameters and their description can be listed
by running generateboard.py -h.
- To write every successful placement to a png file (
-pargument) , the modulepngfromPyPNGis required.
generateboard.py [-h] [-s <seed_as_integer>] [-l <limit_as_integer>] [-p] [--line6] [--multiple-comp-per-col] [--order {RFCI,RAND,DESC}] <output-board-file>
generateboard.py -p -l 7 --line6 --multiple-comp-per-col --order=DESC board.dat
The above command terminates with only 94 placements and visualizes the generation process (The resulting board does not fulfil all requirements of a valid board):
With the board designer script it is possible to design and edit a board.
- tkinter (for the GUI)
boarddesigner.py [<path-to-board-file>]
The original game also features a single player challenge in which the player has 30 tosses and has to cross out as many
tiles as possible to achieve a high score. The script singleplayerchallenge.py provides a GUI to play this challenge.
It is also possible to load custom boards and play on them.
- tkinter (for the GUI)





