Press Green Flag to Start. Runs forever like a screensaver. Press the Stop Sign to Stop. Looks good in Full Screen mode. Do not run in Turbo Mode, as the fun in this project is seeing the computer/program work. Display has four steps... 1. Organize 9 colors in a grid like tic-tac-toe (naughts and crosses). Order (Left to Right, Top to Bottom) is 1-2-3-4-5-6-7-8-9. 2. Change the order of the squares to 8-2-5-4-9-3-6-1-7 (the reason for this is that in step 4 the squares are sorted and it would be boring to see them sorted sequentially). 3. Mix the squares up. 4. Perform a bubble sort (note the order of the squares in Step 2). ... Wait 5 seconds and do it all over again.
Bubble Sort algorithm came from Wikipedia. A variation of this project appears in GraphicDesignBookReport in the Rules and Randomness section... http://scratch.mit.edu/projects/24308608/ This project uses the Scratch Random Number block. A technique of randomly displaying items on the screen is used by randomly picking numbers from a list that keeps getting smaller (makes for a more interesting display).