Skip to main content

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 c4
    • q : Quit

Author

Al Sweigart

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hashi-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hashi-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for hashi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d320b4d8507fd7f0363b2da5079b45ef868c930ef6a78ae0ddc72b3e6d25b5d9
MD5 f5d49ac67e99c8505085a619b3e75221
BLAKE2b-256 bd0db605b3564c0d9b639c43236a5f13a6393bc23993f34e893817e63ac6ae0b

See more details on using hashes here.

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

Hashes for hashi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0353908e723fa788f3c2cb75709b8792f5ba90249e376c201d6ce714f1ff1750
MD5 e508fe293410474147c17f51cd750831
BLAKE2b-256 04b2087c25c3cb017d5863a13ba75c3cd55bceac3d1a62245e10d0da915f49d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page