On December 28, wechat announced that the small program added a new category: small games, at the same time the online small game “jump jump jump”, instant jump jump became a national game, playing the fierce dead but more than 200 points, how to firmly occupy the top of the list? Use Python to help you. Python really can do anything. Here is how to use Python to play wechat Jump.

This is a 2.5D illustration-style puzzle game that allows you to control how far the “little man” jumps by pressing the screen for as long as possible. Maybe at the beginning, because the relationship between time and distance is not appropriate, can only jump out of a few fell to the table below. Gameplay similar to Flappy Bird if you can accurately measure the distance between the starting point and the target point, you can estimate the time of pressing to accurately jump? Some friends on the Internet wrote a Python script to verify the high score. Tools to prepare

Python 2.7 Android Adb driver Python Matplot

Openatx /facebook-wda: openAtx /facebook-wda: openAtx /facebook-wda: OpenAtx /facebook-wda: OpenAtx /facebook-wda: OpenAtx /facebook-wda

Installing dependency packages

Principle that

Click the phone to jump jump small program interface; Use THE Adb tool to get a screenshot of the current phone, and use Adb to pull the screenshot up

adb shell screencap -p /sdcard/1.png adb pull /sdcard/1.png . Display screenshots with matplot; Click the starting point and target position with the mouse to calculate the pixel distance; According to the pixel distance, calculate the pressing time; Click on the screen with Adb to jump; Adb shell input swipe x y x y time

The address of the project: https://github.com/wangshub/wechat_jump_game

It’s not that hard to score 100+ on “Jump”. Just remember these five tips: Jump in the middle of the box for 2 points; Consecutive jumps in the middle of the box add up to 2 points. Jump on the manhole cover and stay there for a while, there will be a flushing sound, plus 5 points. Jump to the Rubik’s cube, stay for a while, wait until the rubik’s cube spins, add 10 points; Skip to the convenience store and wait for it to open for an additional 15 points; Jump to the music box and listen to music for 30 extra points; Robots, it turns out, are better at playing games than people.

Python Learning group: 593088321