X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=code%2FSokoban.dcl;h=f50328733a25bbd17fc72676072d349695bd17f4;hb=528cda8a5116dbed02a1e603d7fca2033dd0c100;hp=631cf7d911c5ccb7707941d4f50b96c1317253d5;hpb=ce272707c750ffd26760802cde66e8da29c246b7;p=mc1516pa.git diff --git a/code/Sokoban.dcl b/code/Sokoban.dcl index 631cf7d..f503287 100644 --- a/code/Sokoban.dcl +++ b/code/Sokoban.dcl @@ -3,9 +3,12 @@ definition module Sokoban from StdString import class toString :: SokobanPuzzle = Sokoban [[SokobanTile]] -:: SokobanTile = Wall | Free | Box | Target | Agent +:: SokobanTile = Free | Wall | Box | Target | Agent | TargetAgent | TargetBox instance toString SokobanTile instance toString SokobanPuzzle parse :: String *World -> (SokobanPuzzle, *World) +parseFromFile :: *File -> (SokobanPuzzle, *File) + +numberOfBlocks :: SokobanPuzzle -> Int