Remember when disks weren't 3TB big and made clicky noises when grumpy? Disks used to get very fragmented, and defragmenters sorted them out by smartly re-ordering the data.
In this competition, we'll give you the fragmented disk, and you'll give us a program that fixes it. If your program wins, we'll give you a prize. Everyone likes prizes!
Finally, because nobody likes drawing data blocks by hand, we made you a disk visualizer. Try not to break it.
If you have any questions about the competition email email@example.com
tl; dr: Pressing the Visualize & Score button will give you a graphical representation of your input fragmented disk; if you've entered a set of moves, it evaluates those moves, shows you your score, and shows you a graphical representation of your output, defragged disk.
Also: If you enter an input disk and a set of moves, then we'll calculate the final disk for you, and pipe it through the evaluator to give you your score. However, if you enter a disk in the "defragmented disk" box, then this is the disk that will get visualized, regardless of the moves you enter.
But really: The input parses like a dog on some (older) versions of IE. You've been warned.
Before you click the button:
Fragmented disk ( score: N/A )
Defragmented disk ( score: N/A )