Snapshots¶
SokobanSnapshot¶
- class SokobanSnapshot(moves_data: str = '')¶
Bases:
Snapshot
Snapshot
implementation forTessellation.SOKOBAN
andSokobanTessellation
.
HexobanSnapshot¶
- class HexobanSnapshot(moves_data: str = '')¶
Bases:
Snapshot
Snapshot
implementation forTessellation.HEXOBAN
andHexobanTessellation
.
TriobanSnapshot¶
- class TriobanSnapshot(moves_data: str = '')¶
Bases:
Snapshot
Snapshot
implementation forTessellation.TRIOBAN
andTriobanTessellation
.
OctobanSnapshot¶
- class OctobanSnapshot(moves_data: str = '')¶
Bases:
Snapshot
Snapshot
implementation forTessellation.OCTOBAN
andOctobanTessellation
.
Snapshot¶
- class Snapshot(tessellation: Tessellation, moves_data: str = '')¶
Base class for game snapshots and accompanying metadata.
Game snapshot is a sequence of pusher steps representing actual steps, jumps (in reverse solving mode) and pusher selections (in Multiban variant).
- classmethod is_snapshot(line: str) bool ¶
True if
line
contains only:movement characters
other snapshot characters (ie. jump markers)
Rle characters
spaces and newlines
- property tessellation: Tessellation¶
- property pusher_steps: List[PusherStep]¶
Game engine representation of pusher steps.
Warning
Setting this property will also replace
moves_data
.