Core game algorithm Round 17 -- Wu Hao teaches you how to play the puzzle game sequence

Source: Internet
Author: User
Tags android games


This person is the final winner of the night god month in "Death Note" (of course, he used some help from Merlot when defeating the night god month). Niya enjoys playing with various toys, for example, Lego, Domino, etc. Of course, his favorite is still jigsaw puzzle. His reasoning is sometimes like a puzzle. He can always calmly look at various unattainable puzzles and finally crack them. As for the relationship between Nigeria and Merlot, I still feel that friendship is higher than hostility. Without merceau's special assistance, Niya will not be able to solve the trap of "fake notes" of the night sun-moon. That is to say, the Niya puzzle is finally completed by merceau's sacrifice.

 

The figure shows Niya's puzzle game (the other two items of Niya, namely the sieve and Domino, which I will elaborate on in the series below ). This type of puzzle game shows its difficulty in quantity. Because the placement of these blocks can be changed at will, that is, if possible, you can even put all the small blocks in your hands. Therefore, if the number of such blocks is limited, it is not too difficult. In addition, you can determine the position of a square in the entire image based on its specific shape. For example, if two sides are complete, they must be on the corner, if only one side is complete, it must be the edge. If all the four sides are incomplete, it must be in the middle.


In computer games, blocks with irregular graphics are not often used. More and more games are displayed ., This is a jigsaw puzzle game from Japan. After the entire picture is spliced, it can form a complete prototype of Niya.


However, if the game does this, it will become very simple. It seems that if one experiment is performed, there will be O (9 !) However, if we think about it, we will find that some basic images can be quickly located. For example, Niya's head must be above, the hands under the hair must be connected to the hair and so on, so that we can almost quickly complete the entire puzzle. Therefore, such a game has no gameplay, because it is too simple to play customs clearance, so that the players have almost no sense of frustration (that is, the plants vs. botnets game tells the opposite about their successful experiences. They say they intentionally set the game to a relatively simple level to make it less frustrating, it is worth mentioning !)

So how can we increase the gameplay of a jigsaw puzzle? We can change it to the following:


This is a jigsaw puzzle game for Android games. Note that there is a gap in the six images. We can use this gap to move the rest of the solid parts. In this way, Images cannot be directly placed in a certain position, and must be moved through some slide operations. We can use these slide operations to move images. However, due to the limitations of the slide operation, we cannot look at such a problem in isolation when moving an image, A global problem should be viewed, because you move an image and the rest will be moved.

In more cases, we will encounter the following two problems:


This is a picture of Superman. We slide through the vacant position in the middle. To enhance the gameplay, we have set the edittext controls of moves and seconds to record the number of player moves and the total time of moves.


This figure is slightly larger. Compared with the "challenge", it emphasizes a "helper" that facilitates players ". For example, if we click a magnifier when playing a video player on Android, the software starts AI to help us automatically erase a pair of images. Here, we can use the show number Button Function to convert it into a digital puzzle, making the problem easier. Even if we don't know where the fruit is, we can make these numbers range from 1 to 15. Finally, we can preview the results of our own puzzles through the preview bar. Maybe this is another achievement!

You may soon notice why I placed the above two images, because 8 = 3 ^ 2-= 2 ^ 4-1, OK? However, these two images are called the eight digital problem and the tenth digital problem respectively in the algorithm. Of course, they can continue to increase according to the power,, so far! 15 some of the hard versions of digital problems can be abnormal! If the complexity is increased, it may only be suitable for genius like Niya.


This is Niya's eyes, filled with wisdom and warning. In his confrontation with the moon of the night, these qualities also allow him to repeatedly escape the curse of death, eventually defeating the month beyond L or even death. Niya's jigsaw puzzle game became a nearby product in Japanese anime.

 

Finally, let me talk about myself. I participated in this year's National Challenge of programming and the Blue Bridge cup. This afternoon, I had a warm-up competition and I felt like my series had been written in white! For example, the first question is a + B. I have explained a lot of things about big numbers in the various tone of big numbers in Round 11, where I am playing reasoning with Wu Hao, I explained in Round 6's "Wu Hao teaches you to play with the stone scissors cloth", the third question is the DP question, you can also find some shadows in my New Year's special article "Wu Hao teaches you to dance birds". I feel that my series is not written in white!

I also hope that my series will bring good luck to future competitions! The beauty of programming warm-up match three questions all AC...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.