游戏玩起来太虐心了,就写了个bot来玩, 代码在此:

git clone https://github.com/chenfengyuan/atc-bot-new.git
git clone https://github.com/chenfengyuan/atc-bot-py.git
git clone https://github.com/chenfengyuan/atc.git

使用a star寻路算法

游戏截图

最好成绩(随便跑跑的)

airports的游戏难度是每秒一次刷新, 每秒出一架飞机

安装方法

  1. 安装14.04版本的ubuntu(更新版本应该也行)
  2. sudo aptitude install git flex bison ncurses-dev libbsd-dev qt5-default build-essential libgtest-dev python3-setuptools python3-dev libffi-dev
  3. 没装过tornado同学,请用一下方式安装(要root)
    1. python3 -m easy_install pip

    2. pip3 install tornado

    3. pip3 install cffi
    4. pip3 install requests
  4. mkdir atc;wget 'https://raw.githubusercontent.com/chenfengyuan/atc-bot-py/master/install.sh';bash install.sh
  5. 这时候会有2个有用的目录(其他的别删, 有依赖)

    1. atc   atc游戏目录
    2. atc-bot-py   bot目录

启动方法

1. 开一个终端, cd $ATC/atc/;./server.py

2. 开一个终端, cd $ATC/atc/;./atc -f airports < action

3. 开一个终端, cd $ATC/atc-bot-py;./atc-bot-py

这时候第二个屏幕就应该出现游戏了~ happy hacking

使用的是a star寻路算法~

最新文章

  1. 多个.ui共用一个.qrc出错
  2. time的用法
  3. tableView:cellForRowAtIndexPath:方法中indexPath.row不是从0开始的,从4开始
  4. error the @annotation pointcut expression is only supported at Java 5 compliance
  5. SVN命令使用详解
  6. 我眼中BA(业务需求分析师)的技能广度和深度
  7. [Bootstrap]组件(四)
  8. js上拉跳转原理
  9. 老李分享:HTTP协议之请求和响应
  10. 网上搜索到的 比较好的mysql查询语句练习题
  11. Quartz学习——Spring和Quartz集成详解(三)
  12. 小甲鱼OD学习第8讲
  13. nuxt npm run dev 报错Solution to the &quot;Error: listen EADDRINUSE 127.0.0.1:8080&quot;
  14. 上pixiv解决法(保存)
  15. 关于python3.x语法
  16. fasttext学习笔记
  17. 求区间最值---rmp
  18. Daily Scrum 10.23
  19. 轻型池不支持执行公共语言运行时(CLR)。禁用以下两个选项中的一个: “clr enabled”或“lightweight pooling”解决方法
  20. Struts框架的执行流程或原理

热门文章

  1. Codeforces295A - Greg and Array(线段树的成段更新)
  2. 潜语义分析(Latent Semantic Analysis)
  3. SQL Server tables export/import with bcp
  4. IOS获取物理尺寸中7Plus中获取的是7的物理尺寸
  5. [HTTP] HTTP Verb
  6. iOS开发之蓝牙通信
  7. jQuery免费资料
  8. MySQL INSERT DELAYED
  9. JavaScript无限极菜单
  10. 11.13 noip模拟试题