makeNextStates: return all states which can be generated by moving a piece of...

Description Usage Arguments Value

View source: R/functions_state.R

Description

Internal. Return all states which can be generated by moving a piece of a given state.

Usage

1

Arguments

state

an object of 'slidepzl_state' class. Original state.

setting

an object of 'slidepzl_setting' class.

Value

a named list of objects of 'slidepzl_state' class, giving all states which can be generated by moving a piece of the original state. Validity is guaranteed.

The name of elements give how they are generated. e.g. '11D' means a piece at (1,1) in the original state is moved down.


shigono/rSlidePzl documentation built on Jan. 21, 2021, 8:01 a.m.