Skip to main content

A brain-teaser game

Project description

by Philippe Fremy phil@freehackers.org

Graphics by Ben Adler benadler@bigfoot.de

Ane Rouge All klotski boards

Klotski is small brick game which has its root in a wooden game named (in french) Ane rouge. The goal is to bring the red piece to its destination by moving other pieces. It sounds simple but it is a real brainteaser.

There was a klotski game on Windows 3.1, and this is where all levels are from.

To run Klotski:

  1. If you are Windows, simply download the exe file from here and run it.

  2. In other situations, you need to use Python to run it. Klotski requires Python 3.5 (at least) and PyQt 5.

Type:

python3 -m pip install klotski

To play:

python3 -m klotski

This was my first program using Python and PyQt back in 2001.

Contributions and feedback are gladly welcome. Especially, bug, new levels or new tile themes. To add new levels, just edit boards.kts, the format is pretty simple. To add new tile themes, look at pixmap/THEMES.txt and replace the image klotski-tiles.png .

For any bugs or feedback, please use the GitHub page: https://github.com/bluebird75/klotski

Full solution to Ane Rouge are available here.

Release history

v1.3.2: 22 Nov 2021

  • fix bug due to new window resizing capability. Add executable for Windows.

v1.3.1: 16 May 2021

  • window may be resized smaller than the board, to fit smaller screens

v1.3: 10 September 2020

  • make it installable through pypi.org and pip
  • move project to GitHub
  • internal:
    • add type annotations
    • port from PyQt3 to PyQt5

version 1.2: 01 June 2006

version 1.1: 17 November 2004

version 1.0 : 23 January 2001

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

Klotski-1.3.2.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

Klotski-1.3.2-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file Klotski-1.3.2.tar.gz.

File metadata

  • Download URL: Klotski-1.3.2.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/59.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.8

File hashes

Hashes for Klotski-1.3.2.tar.gz
Algorithm Hash digest
SHA256 e3bd6546596f7bd5277350f7a9a20a37b5798d7a2fc165be63d890b850ab7f77
MD5 036d7365709511d177dee8ded4e0d56d
BLAKE2b-256 a2768be4f14c8ebbd4ba6c074315d7aa0ed975cf072091cbca7f4d7f8ca01118

See more details on using hashes here.

File details

Details for the file Klotski-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: Klotski-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/59.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.8

File hashes

Hashes for Klotski-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c615da3a5003476ab54c84f1b3c08a020d88da1f69538818bcae57f84be95ae
MD5 6ef48af5370ff9025352c384f1f87a01
BLAKE2b-256 0fa91aeda7323f118c6946a863454fa9b54338c724db3e9220691c16086f6b7c

See more details on using hashes here.

Supported by

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