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寻路算法~
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寻路算法~
相关文章推荐
- 游戏中的 NPC 和 BOT
- Light-Bot:一个编程启蒙游戏
- 考验程序员的一个FLASH游戏(Light-Bot)
- Light-Bot:一个编程启蒙游戏
- AMD押宝新款游戏芯片 用户可自设主频
- Symbian中的游戏编程(二)
- 【iOS-Cocos2d游戏开发之十】添加粒子系统特效并解决粒子特效与Layer之间的坐标问题;
- Unity开发基于Android平台的脑波游戏教程
- golang实现的一个小游戏–猜数字
- csdn英雄会(pongo)题解之报数游戏
- hdu 2209 翻纸牌游戏
- FlappyBird开发总结(四)—— GameManager.cs脚本,游戏控制
- 如何营造游戏的打击感(二):连续打击
- 编程之美 1.16 24点游戏
- CCF-201512-2 消除类游戏
- 历数2013年优秀的开源游戏引擎与开源游戏项目
- 字符游戏-智能蛇(下)
- 3D数学与游戏:四元数与旋转
- 【游戏】JavaScript版连连看