Skip to content

madjoel/nochmaltools

Repository files navigation

Noch mal! Tools

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.

Noch mal! Box Noch mal! Board

Generating a board

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.

Dependencies

  • To write every successful placement to a png file (-p argument) , the module png from PyPNG is required.

Usage

generateboard.py [-h] [-s <seed_as_integer>] [-l <limit_as_integer>] [-p] [--line6] [--multiple-comp-per-col] [--order {RFCI,RAND,DESC}] <output-board-file>

Example

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):

Generation process gif

Board designer

With the board designer script it is possible to design and edit a board.

Board Designer empty Board Designer black

Dependencies

  • tkinter (for the GUI)

Usage

boarddesigner.py [<path-to-board-file>]

Single player challenge

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.

Single player challenge black

Dependencies

  • tkinter (for the GUI)

About

Some tools to check, generate and design a board for the Game "Noch mal!".

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages