I immediately notice that you followed good naming conventions on your Media files, making it possible to avoid having to list all the image file names in blocks.
You add an extra item 'vide' at the top (item 1) of the shuffled list.
What does that do to help you?
After shuffling, you call the second procedure, which looks for the 'vide' in item 1 and then immediately decides when it sees it that it should not use the rest of the list.
Here is our Lists FAQ, with some very nice shuffle procedures.
je ne me sert pas de ce bloc "shuffleliste" désolé c'est un ancien bloc que j'ai oublié d'effacer. J'utilise le bloc procédure "melangerSolvable" pour avoir un mélange qui résolu toujours le puzzle.
I recommend reading and trying this Filipino Phonics sample from another thread.
It has sample code for collecting media file names into a list for smart code to collect the files by their name patterns, and avoid having to list the file names in lists of text blocks.
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!!!