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 提示插件
