GithubHelp home page GithubHelp logo

budu / google-ai-challenge-tron-bot Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 109 KB

This is a sample starter package for the 2010 Google AI Challenge in Clojure.

Home Page: http://whollyweirdwyrd.blogspot.com/2010/02/google-ai-challenge-in-clojure.html

Clojure 100.00%

google-ai-challenge-tron-bot's Introduction

Google AI Challenge in Clojure

This is a sample starter package for the 2010 Google AI Challenge in Clojure. If I get more time I'll update it with more translated example bots or some of my own.

To make it work you'll have to add a jar of Clojure 1.1 (not tested with 1.0 but it should work) in a folder called deps. I've only tested it with the included clj.bat under Cygwin in Windows XP, it should be pretty easy to make it a bash script to work elsewhere.

Running as a Script

To see if your setup works, run this command:

$ java -cp "deps/clojure.jar;." clojure.main MyTronBot.clj -- < maps/empty-room.txt

You can test the sample bot using the provided batch file like this:

$ java -jar engine/Tron.jar maps/empty-room.txt "./clj.bat MyTronBot.clj" "./clj.bat MyTronBot.clj"

Compiling

To compile the sample bot, you'll need first to create a directory for the generated classes. Then it's a simple matter of calling compile:

$ mkdir classes
$ java -cp "deps/clojure.jar;.;classes" clojure.main -e "(compile 'MyTronBot)
MyTronBot

After that, it's exactly like running Java classes:

$ java -cp "deps/clojure.jar;classes" MyTronBot < maps/empty-room.txt

I've also provided a batch file to run the class version:

$ java -jar engine/Tron.jar maps/empty-room.txt "./class.bat MyTronBot" "./class.bat MyTronBot"

google-ai-challenge-tron-bot's People

Contributors

budu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jwhitlark

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.