package elm_playground_gamekits

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module SokobanSource

Sourcetype board = {
  1. map : Tilemap.t;
  2. col : int;
  3. row : int;
  4. moves : int;
  5. pushes : int;
}
Sourceval start : Playground.number -> string list -> board
Sourceval step : board -> (int * int) -> board option
Sourceval solved : board -> bool
Sourceval tile : char -> Playground.shape
Sourceval player : Playground.shape
Sourceval of_xsb : string -> string list list
Sourceval to_xsb : string list list -> string
Sourceval trim : string list -> string list
Sourceval problems : string list -> string list
Sourcetype solution =
  1. | Moves of string
  2. | Unsolvable
  3. | Gave_up of int
Sourceval solve : ?max_positions:int -> string list -> solution