When creating the actual board of the 8-puzzle game, do the actual 8 tiles have to be dragged and dropped. then each assigned a unique number arranged in a 3 * 3 grid and the shuffle button placed below, the code for which controls the movement of all 8 tiles on the board to be arranged randomly, rather than calling openStack?

Unfortunately the assumption of the script that a newly created button is named "new button" is not correct. The name of button created by the "new button" command by script is "button id xxxx". Only a button created by dragging a button from the toolbar is named "new button"

I changed every reference to "new button" to "last button". That works.

that should also answer your question: the shuffle button is created when the card gets an openstack message. All buttons are deleted and the game is created anew. To see this type openstack into the message box and hit return.

I have created the shuffle button and the 8 tiles in the game, but when I run the code and click on either a tile or the shuffle button, there are errors in the script of which seems to be undetectable. Can you find the error in these lines of code?: (put random (sSpaceButton) - 1 into tButtonToSwap) and (put item 1 of location of button ("b" & pButton1) - \).
Thanks

Thanks for your help Bernd for helping to locate the "of me" code in the card script and replacing it with "of this stack", however I still notice that errors were detected in these lines of code: (put item 1 of location of button ("b" & pButton1) - \) and (put item 1 of location of button ("b" & pButton1) - \), though these lines of code are the same, errors are present when I run the code for any of the tiles and the shuffle button, can you find any such errors here?

I append my working version of the puzzle because I don't know why your version is not running. It would help if you would post the code using the Code tab. Especially since this part of code has soft wrapps, this means what seems to be two or more lines of code are actually one. The backslash at the end of the line indicates that the line is continued on the next line.

Try this version and tell us if it works. Don't change anything yet. Only after your have a working version.

My 30 day LiveCode trial has expired and I am now using RevMedia to develop my 8 Puzzle game. When I run the code and click on the Shuffle button, the whole program does not respond and I have to restart my machine and any changes made to the button scripts i.e. the tiles are not saved. Can You inform me of the solution that will get my porgram in working order, so that when I do click the shuffle button, the tiles will move in random areas of the board?

When I click on the shuffle button, the whole program does not respond to any commands that I input and that I have to force quit LiveCode. Is there any solution to this problem to enable the game itself to be in working order?