Snapshot#

class Snapshot(tessellation: Tessellation, moves_data: str = '')#

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).

l: Final[str] = 'l'#
u: Final[str] = 'u'#
r: Final[str] = 'r'#
d: Final[str] = 'd'#
L: Final[str] = 'L'#
U: Final[str] = 'U'#
R: Final[str] = 'R'#
D: Final[str] = 'D'#
w: Final[str] = 'w'#
W: Final[str] = 'W'#
e: Final[str] = 'e'#
E: Final[str] = 'E'#
n: Final[str] = 'n'#
N: Final[str] = 'N'#
s: Final[str] = 's'#
S: Final[str] = 'S'#
JUMP_BEGIN: Final[str] = '['#
JUMP_END: Final[str] = ']'#
PUSHER_CHANGE_BEGIN: Final[str] = '{'#
PUSHER_CHANGE_END: Final[str] = '}'#
CURRENT_POSITION_CH: Final[str] = '*'#
__init__(tessellation: Tessellation, moves_data: str = '')#
to_str(rle_encode=False) str#

Formatted output of parsed and validated moves data.

property tessellation: Tessellation#
property moves_data: str#
property pusher_steps: List[PusherStep]#

Game engine representation of pusher steps.

Warning

Setting this property will also replace moves_data.

property pushes_count: int#

Count of box pushing steps.

property moves_count: int#

Count of steps that are not pushing a box and are not selecting pusher.

property jumps_count: int#

Count of groups of steps that are jumps. Jumps are possible when board is being solved in reverse mode.

property is_reverse: bool#

True if snapshot contains any jumps.