atc游戏bot
2024-10-08 01:18:12
游戏玩起来太虐心了,就写了个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的游戏难度是每秒一次刷新, 每秒出一架飞机
安装方法
- 安装14.04版本的ubuntu(更新版本应该也行)
- sudo aptitude install git flex bison ncurses-dev libbsd-dev qt5-default build-essential libgtest-dev python3-setuptools python3-dev libffi-dev
- 没装过tornado同学,请用一下方式安装(要root)
python3 -m easy_install pip
pip3 install tornado
- pip3 install cffi
- pip3 install requests
- mkdir atc;wget 'https://raw.githubusercontent.com/chenfengyuan/atc-bot-py/master/install.sh';bash install.sh
- atc atc游戏目录
- atc-bot-py bot目录
这时候会有2个有用的目录(其他的别删, 有依赖)
启动方法
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寻路算法~
最新文章
- 多个.ui共用一个.qrc出错
- time的用法
- tableView:cellForRowAtIndexPath:方法中indexPath.row不是从0开始的,从4开始
- error the @annotation pointcut expression is only supported at Java 5 compliance
- SVN命令使用详解
- 我眼中BA(业务需求分析师)的技能广度和深度
- [Bootstrap]组件(四)
- js上拉跳转原理
- 老李分享:HTTP协议之请求和响应
- 网上搜索到的 比较好的mysql查询语句练习题
- Quartz学习——Spring和Quartz集成详解(三)
- 小甲鱼OD学习第8讲
- nuxt npm run dev 报错Solution to the ";Error: listen EADDRINUSE 127.0.0.1:8080";
- 上pixiv解决法(保存)
- 关于python3.x语法
- fasttext学习笔记
- 求区间最值---rmp
- Daily Scrum 10.23
- 轻型池不支持执行公共语言运行时(CLR)。禁用以下两个选项中的一个: “clr enabled”或“lightweight pooling”解决方法
- Struts框架的执行流程或原理