-
Notifications
You must be signed in to change notification settings - Fork 0
A tbt game engine
License
tfcolin/ftbt
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
ftbt 介绍 一款战棋游戏引擎及基于 ncurses 的 UI, 采用 go 语言开发. 支持调整规则, 设计关卡, 和对接不同类型的 UI. 目前的包中包含一种简单的 AI 和基于 ncurses 的用户界面. 软件文档 详见 doc/ftbt.pdf 游戏基本流程: 双方控制人物(棋子)在地图(棋盘)上移动并使用技术对对方人物造成伤害. 如果某人物的生命值 (HP) 被减少至零, 则从战斗地图中 退场 (移出棋盘). 首先将对方全部人物消灭的一方取得胜利. 双方轮流按回合进行游戏. 安装教程 安装引擎 git clone https://gitee.com/tfcolin/ftbt cd ftbt go build . 安装基于 ncurses 的终端 UI 实现的可执行程序. cd ftbt_nc go build . cd ../ftbt_ai_nc go build . cd .. 如果想不依赖 ncurses, 可以使用如下 engine 分支. 该分支去掉了 UI. git clone https://gitee.com/tfcolin/ftbt -b engine 试验运行 ftbt_ai_nc/ftbt_ai_nc star.tech m2.map m2.intro 在 go 代码中 import 该库. import ( "gitee.com/tfcolin/ftbt" ) 使用 Archlinux 发行版的用户可直接通过 AUR 安装: 软件包名称: ftbt 文档安装到位置: /usr/share/doc/ftbt/ftbt.pdf 可执行文件位置: /usr/bin/