15-puzzle

by Draconian Grain

192
58075
Share
Report

Description

15-puzzle simulator

Tags

Game

Concepts

miscellaneous, simple messaging, advanced motion, simple events, resize actor, basic math, simple motion, simple conditionals, visibility, layers, simple costume handling, advanced costume handling, simple loops, delays, variables, functions, simple variables

  • #Lines:486
  • #Actors:29
  • #Costumes:89
  • #Scripts:72

Text Snippets

  • randomize tiles.
  • note: this routine does not work properly as currently implemented.
  • start with a random configuration.
  • start tile 1 at appropriate position.
  • if tile 1 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 1.
  • move temp to tile 1
  • tell blank to follow temp.
  • start tile 2 at appropriate location.
  • if tile 2 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 2.
  • move temp to tile 2
  • start tile 3 at appropriate location.
  • if tile 3 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 3.
  • move temp to tile 3
  • start tile 4 at appropriate location.
  • if tile 4 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 4.
  • move temp to tile 4
  • start tile 5 at appropriate location.
  • if tile 5 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 5.
  • move temp to tile 5
  • start tile 6 at appropriate location.
  • if tile 6 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 6.
  • move temp to tile 6
  • start tile 7 at appropriate location.
  • if tile 7 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 7.
  • move temp to tile 7
  • start tile 8 at appropriate location.
  • if tile 8 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 8.
  • move temp to tile 8
  • start tile 9 at appropriate location.
  • if tile 9 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 9.
  • move temp to tile 9
  • start tile 10 at appropriate location.
  • if tile 10 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 10.
  • move temp to tile 10
  • start tile 11 at appropriate location.
  • if tile 11 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 11.
  • move temp to tile 11
  • start tile 12 at appropriate location.
  • if tile 12 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 12.
  • move temp to tile 12
  • start tile 13 at appropriate location
  • if tile 13 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 13.
  • move temp to tile 13
  • start tile 14 at appropriate location.
  • if tile 14 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 14.
  • move temp to tile 14
  • start tile 15 at appropriate location.
  • if tile 15 is adjacent to the blank space, glide it to the loation of the blank space.
  • tell temp to move to location of tile 15.
  • move temp to tile 15
  • start blank at appropriate spot.
  • move blank to location of temp.
  • start temp at appropriate spot.
  • move temp to location of tile 1.
  • move temp to location of tile 2.
  • move temp to location of tile 3.
  • move temp to location of tile 4.
  • move temp to location of tile 5.
  • move temp to location of tile 6.
  • move temp to location of tile 7.
  • move temp to location of tile 8.
  • move temp to location of tile 9.
  • move temp to location of tile 10.
  • move temp to location of tile 11.
  • move temp to location of tile 12.
  • move temp to location of tile 13.
  • move temp to location of tile 14.
  • move temp to location of tile 15.
  • go to the top-left corner of the screen.
  • make sure seconds get displayed.
  • start the seconds ticking.
  • start the ten-second intervals ticking.
  • start colon at appropriate location.
  • make sure colon gets displayed.
  • make sure minutes get displayed.
  • start the minutes ticking.
  • go to the top-right corner of the screen.
  • make sure number of moves get displayed.
  • reset units digit
  • update number of moves
  • update tens of moves
  • update hundreds of moves
  • update thousands
  • update thousands of moves

Images

  • background scene - Drawing
    background scene - Drawing
  • tile 1 - actor
    tile 1 - actor
  • tile 2 - actor
    tile 2 - actor
  • tile 3 - actor
    tile 3 - actor
  • tile 4 - actor
    tile 4 - actor
  • tile 5 - actor
    tile 5 - actor
  • tile 6 - actor
    tile 6 - actor
  • tile 7 - actor
    tile 7 - actor
  • tile 8 - actor
    tile 8 - actor
  • tile 9 - actor
    tile 9 - actor
  • tile 10 - actor
    tile 10 - actor
  • tile 11 - actor
    tile 11 - actor
  • tile 12 - actor
    tile 12 - actor
  • tile 13 - actor
    tile 13 - actor
  • tile 14 - actor
    tile 14 - actor
  • tile 15 - actor
    tile 15 - actor
  • blank - actor
    blank - actor
  • temp - actor
    temp - actor
  • grid - actor
    grid - actor
  • green button on - green button on
    green button on - green button on
  • green button on - green button off
    green button on - green button off
  • elapsed time - actor
    elapsed time - actor
  • seconds - 0
    seconds - 0
  • seconds - 1
    seconds - 1
  • seconds - 2
    seconds - 2
  • seconds - 3
    seconds - 3
  • seconds - 4
    seconds - 4
  • seconds - 5
    seconds - 5
  • seconds - 6
    seconds - 6
  • seconds - 7
    seconds - 7
  • seconds - 8
    seconds - 8
  • seconds - 9
    seconds - 9
  • 10-second intervals - 0
    10-second intervals - 0
  • 10-second intervals - 1
    10-second intervals - 1
  • 10-second intervals - 2
    10-second intervals - 2
  • 10-second intervals - 3
    10-second intervals - 3
  • 10-second intervals - 4
    10-second intervals - 4
  • 10-second intervals - 5
    10-second intervals - 5
  • colon - actor
    colon - actor
  • minutes - 0
    minutes - 0
  • minutes - 1
    minutes - 1
  • minutes - 2
    minutes - 2
  • minutes - 3
    minutes - 3
  • minutes - 4
    minutes - 4
  • minutes - 5
    minutes - 5
  • minutes - 6
    minutes - 6
  • minutes - 7
    minutes - 7
  • minutes - 8
    minutes - 8
  • minutes - 9
    minutes - 9
  • number of moves - actor
    number of moves - actor
  • moves units digit - 0
    moves units digit - 0
  • moves units digit - 1
    moves units digit - 1
  • moves units digit - 2
    moves units digit - 2
  • moves units digit - 3
    moves units digit - 3
  • moves units digit - 4
    moves units digit - 4
  • moves units digit - 5
    moves units digit - 5
  • moves units digit - 6
    moves units digit - 6
  • moves units digit - 7
    moves units digit - 7
  • moves units digit - 8
    moves units digit - 8
  • moves units digit - 9
    moves units digit - 9
  • moves tens digit - 0
    moves tens digit - 0
  • moves tens digit - 1
    moves tens digit - 1
  • moves tens digit - 2
    moves tens digit - 2
  • moves tens digit - 3
    moves tens digit - 3
  • moves tens digit - 4
    moves tens digit - 4
  • moves tens digit - 5
    moves tens digit - 5
  • moves tens digit - 6
    moves tens digit - 6
  • moves tens digit - 7
    moves tens digit - 7
  • moves tens digit - 8
    moves tens digit - 8
  • moves tens digit - 9
    moves tens digit - 9
  • moves hundreds digit - 0
    moves hundreds digit - 0
  • moves hundreds digit - 1
    moves hundreds digit - 1
  • moves hundreds digit - 2
    moves hundreds digit - 2
  • moves hundreds digit - 3
    moves hundreds digit - 3
  • moves hundreds digit - 4
    moves hundreds digit - 4
  • moves hundreds digit - 5
    moves hundreds digit - 5
  • moves hundreds digit - 6
    moves hundreds digit - 6
  • moves hundreds digit - 7
    moves hundreds digit - 7
  • moves hundreds digit - 8
    moves hundreds digit - 8
  • moves hundreds digit - 9
    moves hundreds digit - 9
  • moves thousands digit - 0
    moves thousands digit - 0
  • moves thousands digit - 1
    moves thousands digit - 1
  • moves thousands digit - 2
    moves thousands digit - 2
  • moves thousands digit - 3
    moves thousands digit - 3
  • moves thousands digit - 4
    moves thousands digit - 4
  • moves thousands digit - 5
    moves thousands digit - 5
  • moves thousands digit - 6
    moves thousands digit - 6
  • moves thousands digit - 7
    moves thousands digit - 7
  • moves thousands digit - 8
    moves thousands digit - 8
  • moves thousands digit - 9
    moves thousands digit - 9