public
Description: simplified ruby implementation of realtimebattle
Homepage:
Clone URL: git://github.com/langalex/realtimebattle_rb.git
name age message
file .gitignore Sat Oct 03 13:54:21 -0700 2009 Restructure [freelancing-god]
file README.md Loading commit data...
file Rakefile Sat Oct 03 13:54:21 -0700 2009 Restructure [freelancing-god]
file VERSION.yml Sat Oct 03 13:54:21 -0700 2009 Restructure [freelancing-god]
directory bots/
directory lib/
file realtimebattle.gemspec Sat Oct 03 13:54:21 -0700 2009 Restructure [freelancing-god]
directory server/
directory spec/
directory tasks/
README.md

General

This is a not very accurate port of the game realtimebattle which I is written in C++ and I couldn't compile on OSX.

The basic principle: you program little bots and then they fight each other in an arena. A bot is an executable than receives information via STDIN and sends back answers via STDOUT. For an example see the bos/stupid_bot.rb. Bots can be written in any programming language, not just Ruby.

The GUI

The GUI is implemented as a web application using Sinatra. You can start the server from the root level of the project directory like this:

$ ruby server/realtimebattleserver.rb

This loads an html page and some javascript that will update the arena a few times per second.