emailconfirmed
1,824
edits
No edit summary |
(example headlines) |
||
Line 185: | Line 185: | ||
** rearrange stripes and squares | ** rearrange stripes and squares | ||
==== 3x3 Puzzle Example ==== | |||
Here's the source code for s simple 3x3 puzzle. | Here's the source code for s simple 3x3 puzzle. | ||
We are cutting the original images into 9 parts, and rearrange them: | We are cutting the original images into 9 parts, and rearrange them: | ||
Line 227: | Line 228: | ||
---- | ---- | ||
==== Final Puzzle Example ==== | |||
Here's the final version, that uses variables, arrays and loops to allow for arbitrary number of tiles: | Here's the final version, that uses variables, arrays and loops to allow for arbitrary number of tiles: | ||