0 Members and 1 Guest are viewing this topic.
Alright so some math statsI did some tests on the puzzles I have right now. They're all what I'd classify under "hard" or "very hard" difficulties right now, but don't worry I'll be converting many to easier puzzles.Anyhow, given my current set of 8321 puzzles:These puzzles have on average 24-25 starting numbers. The rest are all zeroes.I can compress them down to, on average, 22.32 bytes per puzzle.That means that in 4096 bytes I could store about 188 puzzles.Realistically it will be less because easier puzzles will take more space, but this is pretty good when you consider a full board is 81 numbers. I'll have quite a few puzzles included and I might not need separate puzzle packs for them.EDIT:Oh and the way I'm compressing them is I'm storing them as a series of bits.To store an empty tile, I have a 0 bit.To store a non-empty tile I have a 1 bit, followed by 4 bits representing the tile's number.Pretty simple really.
Page created in 0.036 seconds with 50 queries.