We will entertain your mind, enhance your brain, expand your lifestyle.

苦肉計

`苦肉計’ is the 34th of Chinese military strategy “The Thirty-Six Stratagems”. It is a strategy to deceive the enemy by taking advantage of the psychology of the enemy that they believe that humans will not harm them.

We are handling the restart as described in the previous article.

Initially, we incorporated a process to rearrange objects to their initial positions when the game was restarted, but this did not work well because rearrangement was difficult for some puzzles.

So, as a compromise, we decided to unload the puzzle once when restarting the game, and then reload the puzzle progress data as the initial value. This will return the objects to their initial positions.

However, because the restart is specified when the puzzle is solved, it cannot be unloaded or reloaded as is, so a process to exit the puzzle solved state was also added. Although this process is not desirable from a usability point of view, it was decided this way since it is not a function that is used very frequently.

Although it is a compromise, in terms of work, the restart process is equivalent to the reload process, making debugging easier.