Skip to content
Winning bot of Planet Wars Google AI Challenge in 2010.
Common Lisp Java Shell
Branch: master
Clone or download
Latest commit 499742d Sep 25, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin fix dash incompatibility Feb 20, 2012
example_bots added example_bots Sep 15, 2010
games/2010-11-30-13-21-57-iouri-vs-bocsimacko the final submission Nov 30, 2010
maps the final submission Nov 30, 2010
src make it compile with recent sbcl too Feb 20, 2012
tools cleanups Sep 15, 2010
.gitignore port to ACL Dec 6, 2010
Makefile fix for compiling with ACL under cygwin Jan 19, 2011
MyBot.lisp fix build on SBCL broken by previous commit Jan 19, 2011
ProxyBot.lisp fix build on SBCL broken by previous commit Jan 19, 2011
README update links in README Sep 25, 2014
README-LISP compatibility with server Sep 19, 2010
RunMyBot.lisp v0.6 Sep 21, 2010
configure fix dash incompatibility Feb 20, 2012
planet-wars-util.asd proxy works Sep 15, 2010
planet-wars.asd port to ACL Dec 6, 2010
proxy-bot.asd port to ACL Dec 6, 2010
setup.lisp

README

This is a somewhat cleaned up version of bocsimacko-b0.83, my final submission to the Google AI Planet Wars Challenge [1].

Gabor Melis [2]

To get a binary

  1. install ACL or SBCL
  2. do ‘./configure –lisp acl’ or ‘./configure –lisp sbcl’
  3. make

Get an engine/viewer

You can run and view games with any two (even the official one), but the best is this:

https://github.com/albertz/planet_wars-cpp

Clone it just next to this README so that scripts find its binaries.

It needs to be patched to compile with recent gcc:

diff –git a/BotCppStarterpack.cpp b/BotCppStarterpack.cpp index 3a1e139..9b68edb 100644 — a/BotCppStarterpack.cpp +++ b/BotCppStarterpack.cpp @@ -1,4 +1,5 @@ #include <iostream> +#include <unistd.h> #include “game.h”

#ifdef GAMEDEBUG

Play games

./bin/on-all-maps.sh <binary1> <binary2>

This will create two log files in games/<date> for each map. You can view the games played:

./planet_wars-cpp/showgame < games/2014-05-17-08-06-48/map_finals-1_01.txt-1-vs-2.log

To understand the code

In src/ read model.lisp, player.lisp and maybe alpha-beta.lisp. The rest is plumbing and small third party libs (alexandria, parse-number).

Links

[1] http://planetwars.aichallenge.org/rankings.php

[2] mega@retes.hu, http://quotenil.com

[3] git: https://github.com/melisgl/planet-wars

You can’t perform that action at this time.