Defrag by henk

Summary
A casual turn-based puzzler. Play as a disk-defragmenting program trying to save space while someone is adding and removing files.
Instructions (available in-game):
Click to begin selecting a region, then click again to complete the selection. Click somewhere empty to move the selected blocks to that location, or right-click to cancel. Click "pass" to skip your move for this turn.
After you make a move, some number of blocks will be added or removed. The game ends when there isn't enough space for new blocks to be added.
Two blocks of different colors can't be directly adjacent. Try grouping similar colors to save space.
A more screenshot-heavy version of this guide can be found here.
Tool Credits
sound-effects made using sfxr
Changelog:
The links below are to the original version submitted as part of compo. A newer version can be found here with the following changes: - Fixed audio latency issues in some browsers (hopefully) - Tested in firefox and chromium. Browsers with anti-fingerprinting measures enabled may cause audio to not play. - Improved selection and placement to hopefully be more intuitive for new players - Replaced the wall of text with an interactive tutorial
| Link | https://github.com/ldhenk/ldhenk.github.io/tree/master/ld54 |
| Link | https://ldhenk.github.io/ld54/ |
| Original URL | https://ldjam.com/events/ludum-dare/54/defrag |
Ratings
| Overall | 146th | 3.654⭐ | 41🧑⚖️ |
| Fun | 181th | 3.487⭐ | 41🧑⚖️ |
| Innovation | 46th | 4.025⭐ | 42🧑⚖️ |
| Theme | 27th | 4.375⭐ | 42🧑⚖️ |
| Graphics | 309th | 2.821⭐ | 41🧑⚖️ |
| Humor | 243th | 2.157⭐ | 37🧑⚖️ |
| Mood | 310th | 2.6⭐ | 37🧑⚖️ |
| Given | 56🗳️ | 56🗨️ |
- open browser console (ctrl+shift+i then click "console" tab)
- paste this: `cell_inf[4].color = 'grey';`
- swap the number (0-4) and color ([full list](https://developer.mozilla.org/en-US/docs/Web/CSS/named-color)) for what you want
- hit enter
- the colors will update on the next mouse movement
### Default colors:
- 0: yellow
- 1: limegreen
- 2: cyan
- 3: magenta
- 4: orange
But It fits the theme perfectly and the idea of making a defrag game is great :D
I feel like the controls could be made a bit more intuitive. It takes a while to figure out how to do things at first and having to move your mouse all the way to the "clear selection" button takes a bit longer than it should (it could, for example, be mapped to a right click), but once you get used to it it's pretty fun.
Unfortunately the sound effects seem to be having some latency-related issues in some browsers. What's your browser-OS combination? I think Firefox on Windows may be having issues in particular.
Right click does clear the selection. Was it not working for you? I suppose I should mention it in the instructions...
Strong entry, a cool puzzler!
FYI: YOU SHOULD NOT SELECT THE EDGE PIECES!
I did not understand how to select at first, but when I did, it was super fun. Very relaxing game, I really enjoyed it! Great job!
Really good and even complete game for something made in 48 hours. Probably one of the best games. It is designed in a way that can be played for a really long time if you do it correctly, making it IMO very finished!

Nice idea overall. GG.
Took me a while to understand what I had to do and how the game mechanics worked, but once I got the hang of it after a few rounds it was smooth to play.
Some "nice to have" suggestions:
1. It wasn't immediately obvious that the blocks on the upper-right corner were the upcoming actions, though they're really clear to me now. Something like "upcoming reads/writes" would help.
2. Since the score was counting up to 54, I had hoped for an "I win" message. Because I like winning.
3. I can see other placement bonuses or blockers being added like "Bad Sectors" can appear over time.
It's not Gamester's 223, but I'll consider it a win.

Maybe a game mechanism where a file, when it is correctly merged, is completely removed from the defrag zone, because it goes to a safe and stable space or something.
I'm not sure the added/removed block positions are predictable. I had some block removed and there were in the middle of the file, and the game did not warn me about it.
Also, it's quite frustrating to be obliged to use two turn when you just want to shift a file part for some tiles. You have to put it in a complete empty part, then put it back to the shifted place.
And, as said in other comments, each game is a little too short because not enough space.
But really, the idea is fun and original, maybe I will think about it to make my own version of the game.
> Also, it’s quite frustrating to be obliged to use two turn when you just want to shift a file part for some tiles. You have to put it in a complete empty part, then put it back to the shifted place.
While the source and destination regions must be non-overlapping, that doesn't mean there isn't a single-turn way to do what you are trying to do.