Git Product home page Git Product logo

planetwars's Introduction

This package in an alternative Java starter kit for Planet Wars AI Challenge. The scripts could be modified to work for any language that runs on *nix with minimal effort.

http://ai-contest.com/

MyBot.java is a sample bot - feel free to modify and test your changes. (Java starter classes are coming soon.)

Requirements:

* Java 1.6

Layout:

.build/ - build_zip.sh copies source files, does a test compile and build a zip from here
.play/ - play.sh, play_all.sh and tcp.sh use this for compilation and logs
.play/build/ - compiled class files
.play/game/mapXXX - output and logs from last game on mapXXX
.play/game/tcp - output and logs from last game with TCP
example_bots/ - contains the jars for the example bots
maps/ - contains the example maps
src/ - java source files go here
tools/ - contains the PlayGame and ViewGame jars

Usage:

[0] Rename maps to standardize numbers (optional)

This will move maps/mapX.txt -> maps/map00X.txt and maps/mapXX.txt -> map0XX.txt. I just like the names consistent to stardize the output so I can easy grep, awk, etc.

$ ./rename_maps.sh

[1] To run a game against an example bot on map 5, run

$ ./play.sh 005 [bot-name: default is DualBot]

Take a look at the log: MyBot.log

[2] To play an example bot on all 100 maps, run

$ ./play_all.sh [bot-name: default is DualBot]

This will take a few minutes to run..

[3] To play other people's bots in REAL TIME without having to submit
your code to the contest server, run

$ ./tcp.sh

Just make sure that you change the my_bot_name variable to something other than MyBot.
See http://www.benzedrine.cx/planetwars/ for more details. 
Thanks dhartmei for setting up the server!

[4] To view a game replay, run

$ ./view.sh 005

[5] To build a zip file for submission, run

$ ./build_zip.sh

Enjoy!

-InvaderZim

planetwars's People

Contributors

mkemp avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.