1.GitHub:https://github.com/wangshub/wechat_jump_game

2.环境搭建装过caffe、tensorflow框架的Python环境直接能用,安装ADB驱动,cmd进入wechat_jump_game-master根目录执行pip install -r requirements.txt,安装所需环境。整体上通过截图,计算棋子中心点和起始点距离,adb模拟按压时间实现过程。

3.进入手机端跳一跳小程序,连接usb,cmd执行adb devices看是否连接到手机设备,进入wechat_jump_game-master根目录执行python wechat_jump_auto.py

4.测试结果,不调参基本500~800分。寻找机型对应分辨率,wechat_jump_game\master\config\1920x1080\config.json中修改距离参数,参数press_coefficient修改为1.39,wechat_jump_auto.py中计算棋子中心点对于白色顶面的棋子会有偏差,跳不到中心点,连续几个这样的棋子就结束了。调试了几十分钟仅到2000分。


用 Python 来玩跳一跳


用 Python 来玩跳一跳


用 Python 来玩跳一跳





相关文章:

  • 2021-04-07
  • 2021-07-02
  • 2021-07-03
  • 2022-12-23
  • 2021-07-15
  • 2021-06-28
  • 2021-10-09
猜你喜欢
  • 2021-06-06
  • 2021-04-29
  • 2021-08-19
  • 2021-12-08
  • 2021-06-09
相关资源
相似解决方案