A Sokoban game for KDE 4.
KSokoban-NG is a rewrite of the KDE 3 game KSokoban for KDE 4. The look and feel of the old game has been preserved in many ways. The goal of the game is to move all gems (red) onto target squares (green). Gems can be moved only by pushing them.
Arrow keys | move up/down/left/right |
Left click | move to cell, if possible, without pushing any gems |
Right click | move straight as far as possible towards the cell, possibly pushing a gem on the way |
Ctrl+arrow keys | move as far as possible, without pushing gems |
Shift+arrow keys | move as far as possible, possibly pushing a gem |
Ctrl+Z/mouse wheel down | undo |
Ctrl+Shift+Z/mouse wheel up | redo |
KSokoban-NG needs Python 3 and the Python 3 bindings for KDE 4. This should be available on most modern Linux distributions. It is not necessary to be using a KDE desktop to run KSokoban-NG. To install the Python 3 bindings for KDE 4 on Ubuntu, install the python3-pykde4
package.
Extract the downloaded file. Enter the ksokoban-ng
folder and run KDEDIRS="$PWD" ./ksokoban-ng.py
.
This is clearly not the best way to distribute KSokoban-NG, but until I figure out how to package it, this will have to do.