A brain-teaser game
Project description
by Philippe Fremy phil@freehackers.org
Graphics by Ben Adler benadler@bigfoot.de
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 were all levels are from.
Klotski requires Python 3.5 (at least) and PyQt 5. To install Klotski, you must already have Python installed on your computer.
Type:
pip install klotski
To play:
python -m klotski
This was my first program using python and PyQt. I must say I have enjoyed it a lot: Python and Qt are both excellent, easy to use and well documented. I have never been able to implement my ideas so quickly. The usual cycle think, organise into organigram, code, compile, correct compiling errors, run, correct bugs, run, it works was reduced to think, code, run, it works. Because of the simplicity and the power the python language, my ideas could be expressed very clearly and I could concentrate on what I wanted to do instead of how I needed to code it. The result is a simple and clean program, that was coded in half the time (and probably less) it would have taken to do it in C++.
Contributions and feedback are gladly welcomed. 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
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
File details
Details for the file Klotski-1.3.tar.gz
.
File metadata
- Download URL: Klotski-1.3.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/50.0.0 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 932e07439cbc838604604e6a29291ec43828c0f96ab99426273a9562cf465261 |
|
MD5 | 6dcdc561dd1f97cd52a0cf9011439aa1 |
|
BLAKE2b-256 | 9b31e9955aece5239791c0dee6fc97f8f32928979d2fa0cd6315ddbb26165f89 |
File details
Details for the file Klotski-1.3-py3-none-any.whl
.
File metadata
- Download URL: Klotski-1.3-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/50.0.0 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d8f60ea46b69c88411cc516a8a6e7733f340a919b45e07a1c7570e417b694d9 |
|
MD5 | b556154973fec8eed54f4fc53bb47fa6 |
|
BLAKE2b-256 | 7135f135a5dff95756f26e1511ff7fb9cd48d0e220dbd57ee6a526d329bb5c53 |