9/26/2023 0 Comments My Slider Puzzle instalThe block editor section defines how each component responds to user actions.ġ. Figure 3: A view of the components Figure 4: Block editor image 1 Figure 5: Block editor image 2įor every application, we have a graphical user interface or GUI, which helps the user to interact with the on-screen components. To make it more interesting, you can count the time and the number of moves it takes you to solve the puzzle so that you can challenge your friends as well. The objective is to arrange the numbers in sequence. We will make an Android application that will present a square board, which is covered with numbers on tiles (in a series starting from 1 but in jumbled order) with one empty space. The theme is pretty simple and you probably have already got the idea from descriptions in earlier articles in this series. Figure 1: Designer screen Figure 2: How the application looks If the size of the puzzle is 3×3 tiles, it is called the 8-puzzle or 9-puzzle, and if it is made up of 4×4 tiles, it is called the 15-puzzle or 16-puzzle-named, respectively, for the number of tiles or the number of spaces. The objective is to arrange the numbers in sequence, leaving only the corner block empty to allow the number blocks to be moved around. It also comes in various sizes and variations. I will be making a 15-number sliding puzzle which is also known by other names such as Gem Puzzle, Boss Puzzle, Game of Fifteen, Mystic Square, etc. In this tutorial, I will give you the rather challenging task of building yet another interesting and powerful game with the resources available in App Inventor 2. If we talk about App Inventor specifically, then we can proudly say that we have mastered the components that are available in the palette, and moving between designer and block editor is so much fun. Apps developed with App Inventor can be uploaded to the Google Play Store and I will be delighted to see the good work done by readers. If you are a first-time reader of this series, you too can very well learn from this point onwards without having any prior programming experience or any specialised knowledge. By now, most readers have gained enough experience and hands-on practice with all the features of the tool. I have been getting regular feedback, suggestions and debugging questions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |