Show HN: Defrag the Game
defrag-game.com
A while ago, I came across this https://www.youtube.com/watch?v=KR3TbL3Tl6M on YouTube showing 8 hours of defragmenting a hard drive. For some reason, it inspired me to create this small game.
Have fun :)
defrag-game.com
A while ago, I came across this https://www.youtube.com/watch?v=KR3TbL3Tl6M on YouTube showing 8 hours of defragmenting a hard drive. For some reason, it inspired me to create this small game.
Have fun :)
In the NT 4 era I had a defrag take almost 18 hours. I started it before leaving for the day and came in the next morning to find it an unknown percentage done. I didn’t trust it would be okay to restart the machine so I had to leave it.
That was a problem because we were running version control on this box. But by then everyone was bought in so we got a dedicated machine out of the ordeal, but that was super annoying.
We even called Microsoft and got through, but it turns out on NT defragment happened in real mode so there isn’t a lot of memory to buffer copied blocks. So it spends a lot of time seeking on the hard drive. So stupid.
NT cannot run anything in real mode after ntldr. (And even boot time defragmenters run way after ntldr).
There was a cheap defrag you could do while NT was running but it can’t move any system files, so after a few system updates you needed a full defrag.
Reminds me of Sokoban.
edit: managed to get a score of 131 for getting to 0 fragmentation in 30 seconds, i had 139 from just spamming space
Best Score: XXX
(Aim for a lower score)
Just refresh the page
on the other hand, it might be better to change the scoring system. Calculate the worst score using the current system. Then reverse so the score goes up as in displayScore = worstScore - oldWayOfCalculatingScore
The black boxes are data; they are automatically picked up. You're swiping to move the cursor that places the data. The "write file" button writes the data.
I’m not sure what else someone would interpret as drag and drop on a touch screen. That’s gonna be swiping.
works for me with iPhone13 + Safari
I got other things I’m supposed to be doing right now so I’m gonna go do those.
I used to love watching the defragger back in the Windows 95 days, and later I bought copies of PerfectDisk for both home & work. Unfortunately Raxco closed up shop earlier this year, and their license server is offline[0]. So I can't run it other than in trial mode. And that's a shame, as it was the only product that could fix the fragmentation problem we had with over fifty thousand files in a directory tree[1].
I don't know if NTFS has a version ID or if PerfectDisk will respect an ID higher than it was written for, but I'm nervous that the now-unsupported defragger might trash the internals of my filesystem. :(
[0] 1990's style software licensing - super annoying.
[1] Startup. No time to rearchitect it correctly. Usual story.
Or you can hook this mechanism into one of the WASM x64 emulators and attach the drive directly to a copy of MS-DOS or Windows 98 running in the browser.
A classic from about a decade ago: https://www.youtube.com/watch?v=RUCtMIjL-Z4
Thank you ! :)
Fun idea but not great point strategy.
Thanks
Best Score: XXX
(Aim for a lower score)
At the end of a round. Probably not perfect but I hope OK for now.
I like!
At the very least, it's great to hear that I've won one fan! I'm really grateful for the time you invested in something I created. Thank you!
I liked the game, btw as it captured a certain look and feel as well as was fun to play.
|> it inspired me to create this small game.
It was inspiration, not a simulation nor it claimed to be realistic. This is the type of artistic license that game designers have always had at their disposal.
Then you need frequent compaction of the space because it ends up full of small unallocated blocks.
That said, I can't see how this is fun tbh.
Nice educational game!
I know that some browsers has still issues when it comes to pure CSS animations as they are running on the GPU and when the Hardware acceleration is disabled the CPU goes sometimes crazy.
I had the same on an animation GitHub a while ago used on their landing page.
I think it needs an undo button. It sucks being most of the way through the hard level when you accidentally double tap space and ruin your game.
I also want to see score as a percentile of everyone who did it or as being X out of possible Y.
When I was younger, we used to joke about doing the opposite, deliberately fragmenting every file on the drive to put them as far as possible from each other so that your magnetic drive would just THRASH.
I like to make sure the actuator arm gets a good workout to feel the burn.
The High score is calculated with the following formula: (elapsed seconds / 4) + operations + fragmentation
operation: each movement = 1 fragmentation: each gap between two elements = 1
inverted score system (less is better)
Seriously though, thanks for the suggestion! I'll definitely add a small link with game rules to help everyone out.
Has nothing to do with age. Clearly the game has a host of limitations which has nothing to do with actual disk defragging. (Can only process the blocks one at a time in a specified but unknown to the user order. Blocks move one cell at a time and can't jump over other blocks.) And doesn't have others which are core to disk defragmentation. (Sectors, and files for example.)
edit: I realized that the "lines" might be meant to represent disk cylinders in the pre-LBA era, but even then, a line should "wrap around" to itself instead of the next line.
i would also allow blocks be moved freely with the goal to move as little data as possible.
Nifty game, but I almost gave up on it when I couldn't figure out what the hell I was supposed to do as the first move.
Thank you
It shows that there are people who take the time to provide thoughtful feedback in return for my invested time, which goes beyond simple comments like "this is stupid because I don't understand it."
Thank you!