Number Puzzle
by Draconian Grain
15
13754
Share
Report
Description
3-by-3 toroidal number puzzle
Tags
Game
Concepts
advanced motion, miscellaneous, basic math, simple conditionals, simple messaging, simple events, simple motion, resize actor, visibility, layers, simple costume handling, advanced math, advanced costume handling, simple loops, delays, functions, variables, simple variables, advanced control
- #Lines:1539
- #Actors:35
- #Costumes:100
- #Scripts:169
Text Snippets
- start with a random configuration.
- randomize the initial configuration of the numbers in the grid.
- note: this code is not working properly as currently implemented.
- randomarrowclick
- click on an arrow button at random.
- rotate top row left
- rotate top row right
- rotate middle row left
- rotate middle row right
- rotate bottom row left
- rotate bottom row right
- rotate left column up
- rotate left column down
- rotate middle column up
- rotate middle column down
- rotate right column up
- rotate right column down
- game in progress
- broadcast win message once a winning configuration is achieved.
- if the 1 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 1 is in the right column, move it up one spot, wrapping around if necessary.
- if the 1 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 1 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 1 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 1 is in the left column, move it up one spot, wrapping around if necessary.
- start the 1 in the top-left corner.
- if the 1 is in the left column, move it down one spot, wrapping around if necessary.
- if the 1 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 1 is in the right column, move it down one spot, wrapping around if necessary.
- if the 1 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 1 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- if the 1 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 2 is in the left column, move it up one spot, wrapping around if necessary.
- if the 2 is in the left column, move it down one spot, wrapping around if necessary.
- start the 2 in the middle of the top row.
- if the 2 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 2 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 2 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 2 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 2 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 2 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 2 is in the right column, move it up one spot, wrapping around if necessary.
- if the 2 is in the right column, move it down one spot, wrapping around if necessary.
- if the 2 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 2 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- start the 3 in the top-right corner.
- if the 3 is in the left column, move it up one spot, wrapping around if necessary.
- if the 3 is in the left column, move it down one spot, wrapping around if necessary.
- if the 3 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 3 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 3 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 3 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 3 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 3 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 3 is in the right column, move it up one spot, wrapping around if necessary.
- if the 3 is in the right column, move it down one spot, wrapping around if necessary.
- if the 3 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 3 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- start the 4 in the middle of the left column.
- if the 4 is in the left column, move it up one spot, wrapping around if necessary.
- if the 4 is in the left column, move it down one spot, wrapping around if necessary.
- if the 4 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 4 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 4 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 4 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 4 is in the right column, move it up one spot, wrapping around if necessary.
- if the 4 is in the right column, move it down one spot, wrapping around if necessary.
- if the 4 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 4 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 4 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 4 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- start the 5 in the middle of the grid.
- if the 5 is in the left column, move it up one spot, wrapping around if necessary.
- if the 5 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 5 is in the right column, move it up one spot, wrapping around if necessary.
- if the 5 is in the left column, move it down one spot, wrapping around if necessary.
- if the 5 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 5 is in the right column, move it down one spot, wrapping around if necessary.
- if the 5 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 5 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 5 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 5 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 5 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 5 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- start the 6 in the middle of the right column.
- if the 6 is in the left column, move it up one spot, wrapping around if necessary.
- if the 6 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 6 is in the right column, move it up one spot, wrapping around if necessary.
- if the 6 is in the left column, move it down one spot, wrapping around if necessary.
- if the 6 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 6 is in the right column, move it down one spot, wrapping around if necessary.
- if the 6 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 6 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 6 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 6 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 6 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 6 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- start the 7 at the bottom-left corner.
- if the 7 is in the left column, move it up one spot, wrapping around if necessary.
- if the 7 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 7 is in the right column, move it up one spot, wrapping around if necessary.
- if the 7 is in the left column, move it down one spot, wrapping around if necessary.
- if the 7 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 7 is in the right column, move it down one spot, wrapping around if necessary.
- if the 7 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 7 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 7 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 7 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 7 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 7 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- start the 8 in the middle of the bottom row.
- if the 8 is in the left column, move it up one spot, wrapping around if necessary.
- if the 8 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 8 is in the right column, move it up one spot, wrapping around if necessary.
- if the 8 is in the left column, move it down one spot, wrapping around if necessary.
- if the 8 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 8 is in the right column, move it down one spot, wrapping around if necessary.
- if the 8 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 8 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 8 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 8 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 8 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 8 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- start the 9 in the bottom-right corner.
- if the 9 is in the left column, move it up one spot, wrapping around if necessary.
- if the 9 is in the middle column, move it up one spot, wrapping around if necessary.
- if the 9 is in the right column, move it up one spot, wrapping around if necessary.
- if the 9 is in the left column, move it down one spot, wrapping around if necessary.
- if the 9 is in the middle column, move it down one spot, wrapping around if necessary.
- if the 9 is in the right column, move it down one spot, wrapping around if necessary.
- if the 9 is in the top row, move it to the left one spot, wrapping around if necessary.
- if the 9 is in the middle row, move it to the left one spot, wrapping around if necessary.
- if the 9 is in the bottom row, move it to the left one spot, wrapping around if necessary.
- if the 9 is in the top row, move it to the right one spot, wrapping around if necessary.
- if the 9 is in the middle row, move it to the right one spot, wrapping around if necessary.
- if the 9 is in the bottom row, move it to the right one spot, wrapping around if necessary.
- move the top right arrow to the left side of the top row.
- arrow button clicked
- tell the numbers in the top row to move to the right, wrapping around if necessary.
- move the middle right arrow to the left side of the middle row.
- tell the numbers in the middle row to move to the right, wrapping around if necessary.
- move the bottom right arrow to the left side of the bottom row.
- tell the numbers in the bottom row to move to the right, wrapping around if necessary.
- move the top left arrow to the right side of the top row.
- tell the numbers in the top row to move to the left, wrapping around if necessary.
- move the middle left arrow to the right side of the middle row.
- tell the numbers in the middle row to move to the left, wrapping around if necessary.
- move the bottom left arrow to the right side of the bottom row.
- tell the numbers in the bottom row to move to the left, wrapping around if necessary.
- move the left up arrow to the bottom side of the left column.
- tell the numbers in the left column to move up, wrapping around if necessary.
- move the middle up arrow to the bottom side of the middle column.
- tell the numbers in the middle column to move up, wrapping around if necessary.
- move the right up arrow to the bottom side of the right column.
- tell the numbers in the right column to move up, wrapping around if necessary.
- move the left down arrow to the top side of the left column.
- tell the numbers in the left column to move down, wrapping around if necessary.
- move the middle down arrow to the top side of the middle column.
- tell the numbers in the middle column to move down, wrapping around if necessary.
- move the right down arrow to the top side of the right column.
- tell the numbers in the right column to move down, wrapping around if necessary.
- go to the bottom-right corner of the screen and hide until prompted.
- display the message "you win!" if the player wins.
- go to the top-left corner of the screen.
- go to the top-right corner of the screen.
- update thousands
Images
- background scene - Drawing
- number 1 - costume 1
- number 2 - actor
- number 3 - actor
- number 4 - actor
- number 5 - actor
- number 6 - actor
- number 7 - actor
- number 8 - actor
- number 9 - actor
- top right arrow button - arrow button right
- middle right arrow button - arrow button right
- bottom right arrow button - arrow button right
- top left arrow button - arrow button left
- middle left arrow button - arrow button left
- bottom left arrow button - arrow button left
- left up arrow - arrow button left
- middle up arrow - arrow button left
- right up arrow - arrow button left
- left down arrow - arrow button left
- middle down arrow - arrow button left
- right down arrow - arrow button left
- you win - arrow button left
- grid - grid
- elapsed time - elapsed time
- seconds - 0
- seconds - 1
- seconds - 2
- seconds - 3
- seconds - 4
- seconds - 5
- seconds - 6
- seconds - 7
- seconds - 8
- seconds - 9
- 10-second intervals - 0
- 10-second intervals - 1
- 10-second intervals - 2
- 10-second intervals - 3
- 10-second intervals - 4
- 10-second intervals - 5
- colon - :
- minutes - 0
- minutes - 1
- minutes - 2
- minutes - 3
- minutes - 4
- minutes - 5
- minutes - 6
- minutes - 7
- minutes - 8
- minutes - 9
- 10-minute intervals1 - 0
- 10-minute intervals1 - 1
- 10-minute intervals1 - 2
- 10-minute intervals1 - 3
- 10-minute intervals1 - 4
- 10-minute intervals1 - 5
- green button on - green button on
- green button on - green button off
- number of moves - number of moves
- moves units digit - 0
- moves units digit - 1
- moves units digit - 2
- moves units digit - 3
- moves units digit - 4
- moves units digit - 5
- moves units digit - 6
- moves units digit - 7
- moves units digit - 8
- moves units digit - 9
- moves tens digit - 0
- moves tens digit - 1
- moves tens digit - 2
- moves tens digit - 3
- moves tens digit - 4
- moves tens digit - 5
- moves tens digit - 6
- moves tens digit - 7
- moves tens digit - 8
- moves tens digit - 9
- moves hundreds digit - 0
- moves hundreds digit - 1
- moves hundreds digit - 2
- moves hundreds digit - 3
- moves hundreds digit - 4
- moves hundreds digit - 5
- moves hundreds digit - 6
- moves hundreds digit - 7
- moves hundreds digit - 8
- moves hundreds digit - 9
- moves thousands digit - 0
- moves thousands digit - 1
- moves thousands digit - 2
- moves thousands digit - 3
- moves thousands digit - 4
- moves thousands digit - 5
- moves thousands digit - 6
- moves thousands digit - 7
- moves thousands digit - 8
- moves thousands digit - 9