Hashiwokakero puzzle engine for generating, solving, and playing.
Project description
Hashi
Hashiwokakero ("Bridges") puzzle generator, solver, printer, and player for the terminal.
Features
- Generate random Hashiwokakero puzzles of customizable size and difficulty
- Play interactively in the terminal
- Print puzzles and solutions in ASCII
Installation
Clone this repository and install with pip (optional):
pip install .
Usage
You can run the game from the command line:
python -m hashi --width 5 --height 5 --difficulty 40
All arguments are optional. Defaults are:
- width: 5
- height: 5
- difficulty: 40
How to Play
- Connect islands with bridges so that all islands are connected and the number on each island matches the number of bridges connected to it.
- Enter moves in the format:
- a4 c4: Add a single bridge between a4 and c4= e7 e3: Add a double bridge between e7 and e3. a4 c4: Remove any bridge between a4 and c4q: Quit
Author
Al Sweigart
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hashi-0.1.0.tar.gz.
File metadata
- Download URL: hashi-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d320b4d8507fd7f0363b2da5079b45ef868c930ef6a78ae0ddc72b3e6d25b5d9
|
|
| MD5 |
f5d49ac67e99c8505085a619b3e75221
|
|
| BLAKE2b-256 |
bd0db605b3564c0d9b639c43236a5f13a6393bc23993f34e893817e63ac6ae0b
|
File details
Details for the file hashi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hashi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0353908e723fa788f3c2cb75709b8792f5ba90249e376c201d6ce714f1ff1750
|
|
| MD5 |
e508fe293410474147c17f51cd750831
|
|
| BLAKE2b-256 |
04b2087c25c3cb017d5863a13ba75c3cd55bceac3d1a62245e10d0da915f49d0
|