Skip to main content

Sokoban in Python.

Project description

sokobanpy

Sokoban in Python.


What is Sokoban?

Sokoban is a classic puzzle game where the player pushes boxes onto designated goal positions within a warehouse-like environment. The game is played on a grid, and each element is represented by a standard character:

  • "#": Wall
  • "@": Player (Sokoban)
  • "$": Box
  • ".": Goal
  • "*": Box on a goal
  • "+": Player on a goal
  • " ": Empty space

Objective

Move all boxes ("$") onto the goal positions (".") using the player ("@"). Boxes can only be pushed (not pulled), and only one box can be pushed at a time. The player cannot move through walls or boxes.

How to play

Use directional controls to move the player. Strategically plan moves to avoid pushing boxes into corners or against walls where they can't be retrieved. The puzzle is solved when all boxes are on goal tiles ("*").


For details, please refer to the Homepage.

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

sokobanpy-1.0.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

sokobanpy-1.0.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file sokobanpy-1.0.0.tar.gz.

File metadata

  • Download URL: sokobanpy-1.0.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for sokobanpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 472f966ac1ac0b4c7bc8704c798f16e8d17f54b904b56e788fc36dc26a6255d6
MD5 1efe01439d884af0ad2e98193b13a0ec
BLAKE2b-256 0303689627c2c41026116a4dc30357a4685f0319e0d2a9256e0b026c9de33e5f

See more details on using hashes here.

File details

Details for the file sokobanpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sokobanpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for sokobanpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76b5c64e0fce0003facbea5d3d9d49338ca75ef876b5ab95297c8f49e681579e
MD5 51c87125f6c657d37fba17515af1b0c4
BLAKE2b-256 1d81fd6e799d286b4f69327f21ccdfcd0781c97e48b64a9c9a4009d1ec224b1d

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