Huffman+Base64 Sokoban Level Encoding Format

From Sokoban Wiki

Jump to: navigation, search

Level Compression per Huffman-Encoding

     1 - [ - ]  Floor
    01 - [ # ]  Wall
  0011 - [ $ ]  Box
  0010 - [ . ]  Target
  0001 - [\n ]  NewLine
 00000 - [ * ]  Box on Target
000011 - [ @ ]  Player
000010 - [ + ]  Player on Target
    /\
   1  0
  /    \
[-]    /\
      1  0
     /    \
   [#]    /\
         /  \
        1    0
       /      \
      /        \
     /\        /\
    1  0      1  0
   /    \    /    \
 [$]   [.] [\n]   /\
                 1  0
                /    \
               /\    [*]
              1  0
             /    \
           [@]    [+]
Personal tools