Goal Turn all tiles into the same color, starting from an 8x8 grid of alternating colors in both directions. The fewer moves the better. After you solve it, you could try searching for better solutions, or proving why your solution is the best! Rules When you click a tile, all tiles in the row and column, including the tile clicked, will change color. !!! If the game breaks, you can completely reset by clicking the green flag. If you can reproduce the bug, please notify me. Features Board size: Select presets, that you can cycle through, or manually enter a custom size (2-17). Restart: The restart button in the top left should get you back to the beginning, allowing you to change the board size. If something breaks, restart using the green flag and, if possible, tell me how you broke the game. Reset: You can instantly reset the board to its initial alternating pattern by pressing the reset button. This also interrupts a replay. All White/Black: Using the tiles to the left of the board, you can easily set the whole board to white or black. Export: Using the up arrow to the top left, you can export the moves you made as text. Copying it can be difficult, but this is unfortunately a limitation of scratch. On PC, you should be able to tripple click the field. As long as you don't restart, all moves in between resets should be shown in chronological order. You can close the list with the red cross that appears to the left Replay/Import: Using the down arrow in the bottom left, you can replay any previously exported moves. They are in the format [size]x[size]:C[Move 1 column]R[Move 1 row],C[Move 1 coulmn]R[Move 2 row]........ The first row and column is "0", then "1","2","3" etc. Speed: Using the "SPD" button in the middle on the left, you can change the delay in seconds between moves during a replay(0.001-60). With small numbers, the actual delay will be longer, because scratch is limited to 30fps, which influences the rest of the code.
--------------------------------------- ---------!!! SPOILERS !!!--------- --------------------------------------- The order of clicks doesn't matter, and pressing the same tile more than once is pointless. For an even number of clicks, it's as if it wasn't pressed, for odd ones as if it was pressed once. With an even number as the board size, you can get from any state to any other state using one, and only one set of clicks. All other ways are either a different order of the same set, or include more than one click on the same tile. (The export function simplifies those by default). As for the puzzle, the solution for an evenly sized board is clicking all the tiles, that were the same color in the beginning. Here is the replay for 8x8: 8x8:C6R7,C4R7,C2R7,C0R7,C7R6,C5R6,C3R6,C1R6,C6R5,C4R5,C2R5,C0R5,C7R4,C5R4,C3R4,C1R4,C6R3,C4R3,C2R3,C0R3,C7R2,C5R2,C3R2,C1R2,C6R1,C4R1,C2R1,C0R1,C7R0,C5R0,C3R0,C1R0, As for uneven sizes? I'm still working on that....