atc游戏bot
游戏玩起来太虐心了,就写了个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的游戏难度是每秒一次刷新, 每秒出一架飞机
安装方法
python3 -m easy_install pip
pip3 install tornado
启动方法
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寻路算法~
转载于:https://www.cnblogs.com/cfy42/p/3823958.html
总结
- 上一篇: WPF学习系列之二 (依赖项属性)
- 下一篇: Jquery 提示插件