Sokoban game for HP Prime
|
01-05-2014, 09:11 AM
(This post was last modified: 01-05-2014 09:20 AM by patrice.)
Post: #5
|
|||
|
|||
RE: Sokoban game for HP Prime
About compression, you can use a simple encoding as commonly used in the game of life
Here is a decoding routine Code: RLEMap (Rows, Cols,RLE) Code: "$$$5b5w$5bw3bw$5bwc2bw$3b3w2bc2w$3bw2bcbcbw$b3wbwb2wbw3b7w$bw3bwb2wb5w2b2dw$bwbc6bs6b2dw$b5wb3wbwb2w2b2dw$6bw5b9w$5b7w!" $ : new line ! : End (optional) b : Background (your 0) w : Wall (your1) c : Cube (your 3) s : Sokoban (your 4) and numeric is the repeat factor for next letter Routine and level untested, but you get the idea By the way, are you sure there is a Cube missing in level 1 ? Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)