# Defcon AI API

I have developed an Artificial Intelligence API for Introversions game DEFCON. In case you don't know it, DEFCON is a RTS game about nuclear war.

This page contains information about the API, such as hints, Q&A, a tutorial, example implementations, the manual, and all links to press releases and articles about it.

## DEFCON Competition!

At the IEEE Symposium on Computational Intelligence and Games 2009 in Milano there was a competition to determine the best DEFCON bot. Deadline was the 23rd of August 2009, 23:59.

## Requirements

- Windows (or the ability to run the Windows version of DEFCON)
- To develop bots: Visual Studio 2008 (Express Edition available here)
- Possibly you also need the Microsoft Visual C++ runtime components if you do not have Visual Studio installed.

I've heard of a successful installation under Linux using wine-1.0.1 and winetricks.

## Download and Installation

You'll need:

- Windows demo: http://www.introversion.co.uk/defcon/
- Bot-enabled Defcon executable and framework: DEFCON AI API, version 1.57 (Updated 9th August 2009)

1. Download and install the Windows demo version of DEFCON
2. Download the bot-enabled executable and unzip the contents of the file into the directory where you installed the demo, overwriting the original defcon.exe (you can make a backup of that)
3. Run Defcon.exe

## Documentation

Here are some documents to get you started with the API.

- DEFCON AI API - Quickstart and Documentation (v1)
- DEFCON AI API - Function List (v1)
- DEFCON AI API - Constants and Tables (v1)

More information and some usability hints can be found on the documentation page.

## Bots and Interfaces

Bots and interfaces to Java and LUA are listed on their own page, here.

## Links

- http://www.introversion.co.uk/defcon/bots/: This page is Introversions hub for all information concerning the bot.
- publications: A paper and my thesis on DEFCON bots.
- http://aigamedev.com/essays/defcon-bots-api: Blog-post on the development process of the API
- http://aipanic.com/ai-in-computer-games-a-threat/: An article I wrote on the threat of AIs in Games to take over the world.

## Beta Builds

Information on beta builds can be found on this page.

## Contact

Please let me know if there's anything amiss, you'd like to see some features or if you've found a bug by shooting me an e-mail: robin.baumgarten06@doc.ic.ac.uk