It has general ideas of grabbing the list of Media file names and filtering the list to match whatever you need at the moment. It can filter for '.jpg' or '.png' instead of '.mp3' just by changing a text block.
You have machinery available to you to reduce the drudgery of developing an app.
It's worth a moment to learn how to use it.
Here is the world's easiest shuffle value procedure:
le gameplay : je clique sur une image qui se trouve en haut, cette image apparait dans la grande grille (4x4) , je clique sur le bouton "mélanger" et les cases de l'image se mélange, la première case doit rester libre pour pouvoir déplacer les cases. Quand l'image est mélanger , on doit reconstituer l'image de départ en déplaçant les cases (le déplacement des cases se fait en cliquant sur le bouton de la case que l'on veut déplacer ).
Est ce que ma description est plus précise ?
J'ai coupé l'image du puzzle en 16 morceaux images (et la première et vide) , au début mon puzzle s'affiche avec l'image que l'on sélectionne , il faut cliquer sur le bouton "mélanger" pour mélanger les cases.
Oui le jeux se souvient de laquelle des 4 images cibles vous recherchez
This is like the slider 15 puzzle,Fifteen Puzzle Game a 4 by 4 grid of numbered tiles 1-15 and a hole, that you have to get into the proper order by sliding one at a time into the adjacent hole.
Shuffling such a puzzle only works half the time, because half of the shuffle results would be impossible to solve without lifting two pieces from the frame and swapping them instead of sliding them.
Here is some code to find out if it is solvable or not... as App Inventor is a bit slow in doing calculations this might make sense to do in an extension or using Javascript...
Oui effectivement, j'avais un message qui apparaissait , merci . (On comprend mieux le jeu quand on le teste, c'est pas évident à expliquer) .
C'est bizarre car pour moi , Quand je mélange n'importe quel premier puzzle que je choisi ça fonctionne et quand je choisi un prochain puzzle il ne se mélange plus. avez vous essayé de choisir d'autres puzzles et de mélanger ?
Merci Taifun pour vos suggestions.
Je viens de m'apercevoir que quand je choisis un puzzle, je le mélange et je ne joue pas , ensuite je choisis un autre puzzle, je le mélange et bien là il ne se mélange pas !!! par contre quand je joue au premier puzzle (je le fini) et que je choisis un autre puzzle le bouton mélanger fonctionne, je ne comprends plus rien!!!
I found an inconsistency in the way you represent the neighbors list of a cell.
You generate a fixed length = 4 list of neighboring cells, with blank for impossible cells.
But you never check for blank when doing randomization as a series of interchanges around the void.
I see that you randomize the puzzle by applying pair switches around the item in global variable Grille that holds 'void' instead of an image file name.
That insures there is no worry of generating an impossible puzzle.
New puzzle files in the Media folder should follow the naming conventions of the earlier puzzles, and the new image components for puzzle selection should have picture files following the same naming convention.
A lot of the problems were caused by duplication of code, and lack of separation of functions.
Some global variables needed to be eliminated, to lower the cognitive load of maintaining them.