Researchers hack game Snake on Google Maps to add God Mode, automatically play with AI

Recently, Check Point's team tried playing the April Fool's snake game added by Google Maps to Android and iOS, after playing for a long time they had the idea to hack this game to change a little help 'boring'.

Recently, Check Point's team tried playing the April Fool's snake game added by Google Maps to Android and iOS, after playing for a long time they had the idea to hack this game to change a bit of 'boring' support, and so some nice features like the God Mode, auto-play with AI have been added, making this 'legendary' game of this childhood interesting. Much tastier.

Researchers hack game Snake on Google Maps to add God Mode, automatically play with AI Picture 1Researchers hack game Snake on Google Maps to add God Mode, automatically play with AI Picture 1

  1. Google Maps adds game of Snake hunting for April Fool's Day, invites you to try it out

Seriously, the experts originally decided to play this game for entertainment amid stressful hours at Check Point. But this plan was counterproductive when some experts were too involved in the game, they were uncomfortable when they could not reach new records in this simple game of the Months. Very quickly, the decision was made by the most "spicy" people, it was hacked into the game to reverse the gameplay by using browser-based remote debugging (browser-based remote debugging).

After "breaking into" the game's internal structure, the Check Point team made some modifications and added a simple AI model that could automatically play games, and importantly rather than changing the code to be able to play completely without losing.

Researchers hack game Snake on Google Maps to add God Mode, automatically play with AI Picture 2Researchers hack game Snake on Google Maps to add God Mode, automatically play with AI Picture 2

  1. Top Android apps are free and discounted (April 4, 2019)

To begin this reverse engineering process, the researchers downloaded the Google Maps April Fool snake game into the Genymotion Android emulator, allowing the game to be rendered in WebView and leading them to the Snake domain. .googlemaps.com where the game's web application is hosted.

On the web application page, the researchers found JavaScript that initiated the game's console panel and then removed the conditions that would make the snake in the game die, which makes our snake become Immortal (God Mode in the game).

On the other hand, to ensure time-consuming support and still be able to break new record levels, researchers have added a simple artificial intelligence model to the game. As a result, our snake has become much smarter now, knows how to move, eat points, avoid goals and, importantly, never die. Meanwhile, the researchers' only task will now be to sit around the screen and encourage the snake to reach a new record.

Researchers hack game Snake on Google Maps to add God Mode, automatically play with AI Picture 3Researchers hack game Snake on Google Maps to add God Mode, automatically play with AI Picture 3

  1. New hidden games appear on Google, want to play must turn off Wifi, 3G / 4G

Although the process of adding AI to games is just a 'chore' for most developers. But with 'mortals' like me and you, I won't be able to chew. It would be much better if there are detailed descriptions of this process, and you can find them here.

In addition, Check Point researchers have published a video describing the entire process of reverse engineering this game on YouTube, you can consult if you are interested.

4.2 ★ | 13 Vote