AI:Main Page

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
(User AIs: Tournaments)
(formatting changes)
Line 5: Line 5:
 
For all pages there is the rule: where examples are given, we will use Squirrel. We suggest everyone who wants to write an AI to read the Introduction as it will explain the basic concept.
 
For all pages there is the rule: where examples are given, we will use Squirrel. We suggest everyone who wants to write an AI to read the Introduction as it will explain the basic concept.
  
==Source & binaries==
+
== Source & binaries ==
 
You can check out the source from svn at svn://svn.openttd.org/branches/noai or download it from [http://nightly.openttd.org/noai/files/ nightly.openttd.org/noai/files], binaries are available at http://nightly.openttd.org/noai/scoreboard.php
 
You can check out the source from svn at svn://svn.openttd.org/branches/noai or download it from [http://nightly.openttd.org/noai/files/ nightly.openttd.org/noai/files], binaries are available at http://nightly.openttd.org/noai/scoreboard.php
  
==Compilation==
+
== Compilation ==
 
If compiling from source, the files for /src/3rdparty/squirrel have to be checked out from SVN at svn://svn.openttd.org/3rdparty/squirrel
 
If compiling from source, the files for /src/3rdparty/squirrel have to be checked out from SVN at svn://svn.openttd.org/3rdparty/squirrel
  
==Changes==
+
== Changes ==
 
As of 17 March 2008, it is no longer possible to write your AI in C++. The only language to write your AI in, is Squirrel. See [[AI:Why No C++|this page]] why.
 
As of 17 March 2008, it is no longer possible to write your AI in C++. The only language to write your AI in, is Squirrel. See [[AI:Why No C++|this page]] why.
  
 
For comments on all committed changes to the code, see the AI branch commits summary page: http://hg.openttd.org:8000/branches/noai.hg/
 
For comments on all committed changes to the code, see the AI branch commits summary page: http://hg.openttd.org:8000/branches/noai.hg/
  
==Tutorials==
+
== Tutorials ==
 
* [[AI:Introduction|Introduction to writing an AI for OpenTTD]]
 
* [[AI:Introduction|Introduction to writing an AI for OpenTTD]]
 
* [[AI:Basics|Basics of writing an AI]]
 
* [[AI:Basics|Basics of writing an AI]]
Line 25: Line 25:
 
* [[AI:Trams|Trams, and everything related]]
 
* [[AI:Trams|Trams, and everything related]]
  
==API Documentation==
+
== API Documentation ==
 
* Documentation of all API functions can be found in the Doxygen output. For AI API only, check http://devs.openttd.org/~noai/aidocs/
 
* Documentation of all API functions can be found in the Doxygen output. For AI API only, check http://devs.openttd.org/~noai/aidocs/
  
==Examples==
+
== AIs ==
 +
=== Examples ===
 
* [[AI:WrightAI|WrightAI]] - Builds plane routes only.
 
* [[AI:WrightAI|WrightAI]] - Builds plane routes only.
  
  
== User AIs ==
+
=== User AIs ===
 
* overambitiousAI: [http://tt-forums.net/viewtopic.php?p=632579#p632579 Forum post] [http://homepages.uni-paderborn.de/leise/ Website]
 
* overambitiousAI: [http://tt-forums.net/viewtopic.php?p=632579#p632579 Forum post] [http://homepages.uni-paderborn.de/leise/ Website]
 
* Clueless: [http://tt-forums.net/viewtopic.php?p=573508#p573508 Forum post] - Warning, needs r9591!
 
* Clueless: [http://tt-forums.net/viewtopic.php?p=573508#p573508 Forum post] - Warning, needs r9591!

Revision as of 08:08, 10 June 2008


Welcome to the AI Development. Starting from the NoAI branch it is possible for any user to create his own AI. Not only do we deliver a clean and simple API, we also allow you to make your AI in scripts. This should make it possible for anyone with a bit programming knowledge to make pretty good AIs. Also should it challenge people to build better AIs then the ones we currently have in 0.5 release. This page is all about telling you how to do it.

For all pages there is the rule: where examples are given, we will use Squirrel. We suggest everyone who wants to write an AI to read the Introduction as it will explain the basic concept.

Contents

Source & binaries

You can check out the source from svn at svn://svn.openttd.org/branches/noai or download it from nightly.openttd.org/noai/files, binaries are available at http://nightly.openttd.org/noai/scoreboard.php

Compilation

If compiling from source, the files for /src/3rdparty/squirrel have to be checked out from SVN at svn://svn.openttd.org/3rdparty/squirrel

Changes

As of 17 March 2008, it is no longer possible to write your AI in C++. The only language to write your AI in, is Squirrel. See this page why.

For comments on all committed changes to the code, see the AI branch commits summary page: http://hg.openttd.org:8000/branches/noai.hg/

Tutorials

API Documentation

AIs

Examples


User AIs

Tournaments

A tournament system for user made AIs has been created. AIs compete in one-to-one games using same map and same set of rules throughout the whole tournament. Results of past tournaments (including animated gifs!) are available at http://devs.openttd.org/~noai/tournament/ . If you'd like your AI to be benchmarked against others, send a tar file to TrueLight. See NoAI thread on forums for more details.

Personal tools