Version 1 (modified by 10 years ago) ( diff ) | ,
---|
Hannibal
Intro
The Hannibal AI/Bot is a new approach to reduce the complexity of programming a bot for 0 A.D. It was started in February 2014 by agentx. This page will document the development process and parts of the source, explains major concepts and provides tips & tricks. The forum has already a few posts discussing the bot's features.
In particular the bot will use:
- a state machine to handle game phases
like village, town, city, attack, defense, reconstruction, etc.
- a triple store to link features of the cultures
like who can gather fields, can a healer melee?
- a simple query language to retrieve information from the triple store
"food.grain GATHEREDBY WITH costs.metal = 0, costs.stone = 0, costs.wood = 0 SORT < costs.food"
- a plugin system describing behaviour of groups of units
(grain-picker, hunter, warrior, miner, etc)
- a domain specific language used for the plugins
to allow non programmer to define a group's behaviour
Plugins
Scratchpad
(just a section for thoughts and experiments)
Attachments (3)
- 0 A.D. Language(1).png (49.8 KB ) - added by 10 years ago.
- hcq.png (49.8 KB ) - added by 10 years ago.
- hcq.jpg (49.3 KB ) - added by 10 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.