ScratchData LogoScratchData
Back to gregatku's profile

Puzzling remix

GRgregatku•Created May 3, 2022
Puzzling remix
13
10
167 views
View on Scratch

Instructions

- - - - - - - Français instructions ci-dessous - - - - - - - - - There are 3 puzzles with 7 pieces each. Click and drag each piece to its place & click the 90 degree turn button if you want to rotate the piece. This operation can be repeated. There is no flip of the pieces. Click on Test to check the positions. The red pieces are fixed to help with the solution. This can be seen by clicking on the respective button. - - - - - - - - - - - - - - - - - - - - - - - - - - - - Il y a 3 puzzles de 7 pièces chacun. Cliquez et faites glisser chaque pièce à sa place et appuyez sur la barre d'espace si vous souhaitez faire pivoter la pièce. Cette opération peut être répétée. Il n'y a pas de retournement des pièces. Cliquez sur Test pour vérifier la position. Les pièces rouges sont fixées pour aider à la solution. Cela peut être vu en cliquant sur le bouton correspondant.

Description

Originally remixed to show @ffred what I believed was a 2nd solution to puzzle No. 2 (the rectangle puzzle). Then I have made it Mobile-Friendly at @ffred's request! Once you've touched/dragged a piece click the 90-degree turn button to turn that piece 90 degrees clockwise (Note: spacebar is no longer used for this). Then I changed the thumbnail to show @ffred a 4th solution I found to the original Rectangle puzzle. @ffred then changed his original project so each puzzle only had one solution. However, curiosity got the better of me and I decided to have a go at rewriting the code so that it could detect as many solutions as there happen to be for any given puzzle. The "Solution" button still shows @ffred's original solution, but if you happen to find a different solution, when you click the "Test" button it will still say "Bravo!!". It now has one piece Sprite for each puzzle, where the main Sprite is hidden, and the 7 pieces are all clones of it. There's one more Sprite being the puzzle shapes into which the 7 pieces need to fit. It essentially uses the same technique I used in my Black Square Puzzle project - https://scratch.mit.edu/projects/580040677/ So far I have found 2 distinct solutions for the Square puzzle (well 4 really because the 2 large triangles are now interchangeable), 6 for the Rectangle puzzle (well actually, there are 18 because now that there are no fixed pieces the 2 large right-angles triangles & the 3rd one formed by the 2 small isosceles triangles, are all interchangeable), but only 1 solution (well 2 really now there are no fixed pieces) for the Parallelogram puzzle. @ffred has now also changed his original project to support all valid solutions, but he used a quite different method to me, to determine if a solution is valid or not.

Project Details

Project ID684308501
CreatedMay 3, 2022
Last ModifiedMay 25, 2022
SharedMay 3, 2022
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root