您的位置:首页 > 其它

atc游戏bot

2014-07-04 13:54 106 查看
游戏玩起来太虐心了,就写了个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

这时候会有2个有用的目录(其他的别删, 有依赖)
atc atc游戏目录

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寻路算法~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: