Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.55 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.55 KB

soukoban

docs.rs Test status Code coverage

A library provides the implementation of some algorithms and data structures related to Sokoban.

Features

  • Level
    • Lazy parsing: Parses the first n levels or the nth level from an XSB string containing multiple levels.
    • Map reconstruction: Reconstructs the map from the solution.
    • Normalization: Removes elements from the map that are not relevant to the solution.
    • RLE support: Enables loading of levels encoded in Run-Length Encoding (RLE) format.
  • Solution
    • Reversal move handling: Automatically interprets reversal moves as undo actions.
    • Metrics calculation: Computes metrics such as box_lines, box_changes, pushing_sessions, and player_lines.
  • Pathfinding: Finds the optimal player path to push a box to a position.
  • Deadlock detection: Detects static deadlocks and freeze deadlocks.

License

Licensed under either of

at your option.

The level files in the assets directory are licensed solely under their respective licenses, available in the LICENSE file in the directory.