Browse Source

Detail puzzles binning

master
Macoy Madson 2 years ago
parent
commit
b09ad943c3
  1. 6
      ReadMe.org

6
ReadMe.org

@ -112,6 +112,12 @@ An example board:
#+BEGIN_SRC C
60 IBBxooIooLDDJAALooJoKEEMFFKooMGGHHHM 2332
#+END_SRC
** Data binning
The entire Rush Hour database decompressed is >100Mb, which is a waste of space on an Android phone. I do some additional processing to make the puzzles suitable for Kitty Gridlock:
- ~src/Decompression.cake~ has a constant ~g-num-puzzles-to-read~ which is used to throw out most of the puzzles. It outputs ~data/puzzles.txt~, which is this subset
- ~src/PuzzleIO.cake~ reads the puzzles subset in text, then writes it to a binary format ~data/puzzles.bin~ which makes the puzzles trivial to load at runtime
- ~src/Main.cake~ calls functions in ~PuzzleIO~ to load the binary puzzles at runtime
* Licensing and 3rd party
Kitty Gridlock is copyright (C) 2021 Macoy Madson. Licensed under ~GPL-3.0-or-later~. Art made by Macoy and V.

Loading…
Cancel
Save