https://github.com/fasterthanlime/teeworlds-ai
An attempt to add bots to teeworlds-0.5.1 =)
https://github.com/fasterthanlime/teeworlds-ai
Last synced: about 1 year ago
JSON representation
An attempt to add bots to teeworlds-0.5.1 =)
- Host: GitHub
- URL: https://github.com/fasterthanlime/teeworlds-ai
- Owner: fasterthanlime
- License: other
- Created: 2009-10-07T16:19:53.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2013-11-27T20:59:21.000Z (over 12 years ago)
- Last Synced: 2024-05-02T06:11:06.679Z (about 2 years ago)
- Language: C
- Homepage: http://teeworlds.com
- Size: 11 MB
- Stars: 16
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: license.txt
Awesome Lists containing this project
README
A few AIs for Teeworlds.
How to use
==========
It's just a few hooks added in controls.cpp, so you have to use a modified client.
These sources are from their 0.5.1 release.
You need 'bam' to build teeworlds, and GNU make, to launch the Makefile.
'bam' is a build tool that's been created for teeworlds. You can download
and compile it here: http://teeworlds.com/trac/bam/
NOTE: The 'bam' produced executable is actually in bam-0.x.x/src/
Yeah, that seems incredibly dumb, but that's true =)
Then, type "make" to build Teeworlds and the AIs, or "make test" to do the same + launch the client.
the "./teeworlds_d" produced executable is a regular client, so just connect to your
favorite server (bots aren't welcome outside LAN servers, as far as I know, on Internet you'll be banned.)
Adding your AI
==============
Add a XXXXAI.ooc file in ooc-ai/, and add it an XXXXAI: class extends AI
Just take example on NddAI.ooc, or look at the methods in AI.ooc
Then in ooc-ai/ooc-ai.ooc, change the getAI() method to instanciate your
AI instead. (And don't forget to import it, you silly)
Final words
===========
Have fun! Don't be evil =) Bots-vs-bots fights are fun, don't be silly
and don't use them against (innocent) humans. If you do so, you only show
that you don't know how to play yourself ;)