AI Challenge
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1946 commits behind aichallenge:epsilon.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ants
integration_testing
manager
setup
sql
website
worker
.gitattributes
.gitignore
.gitmodules
README.md

README.md

AI Challenge Source Code Repository

Codename: Epsilon

This code will provide the basis for the next contest (Winter 2011). Epsilon is supposed to implement the ants game.

Folder Contents

  • ants/ - Everything related to ants: engine, starter packages, maps/mapgen, visualizer
  • integration_testing - Anything related to testing/stress-testing the contest setup
  • manager/ - Tournament manager which coordinates the workers and computes skill ratings
  • worker/ - Standalone workers which run games (including compiler and sandbox)
  • sql/ - Files for creating an empty sql database
  • website/ - Main website and frontend

Initializing the git submodules:

  • git submodule init
  • git submodule update

Installation

This is out of date stuff. You might want to consult with setup/server_setup.py and the IRC.

Main Server

  • Install Latest Ubuntu

  • Install Dependencies:

apt-get install subversion apache2 mysql-server php5 libapache2-mod-php5 php5-mysql python-mysqldb openssh-server build-essential

  • Create mysql aichallenge user and database

Schema files are located in sql/, from that folder execute

mysql -u $aichallenge_user -p'$db_password' $aichallenge_db < * .sql

  • Configure www/server_info.php, sample file in www/server_info.php.sample

  • Configure manager/server_info.py, sample file in manager/server_info.py.sample

  • Create submissions directory and give www-data all permissions

Change www/check_submit.php and manager/compile_daemon.py to point to the submissions directory

  • Setup apache to serve up www/ directory.

Worker

  • For java bots apt-get install openjdk-6-jre-headless openjdk-6-jdk

  • Create the users with:

sudo python create_jail_users.py 10