Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/langalex/realtimebattle_rb
simplified ruby implementation of realtimebattle
https://github.com/langalex/realtimebattle_rb
Last synced: about 1 month ago
JSON representation
simplified ruby implementation of realtimebattle
- Host: GitHub
- URL: https://github.com/langalex/realtimebattle_rb
- Owner: langalex
- Created: 2009-10-03T17:04:24.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-10-04T17:57:02.000Z (over 15 years ago)
- Last Synced: 2024-04-13T09:17:58.193Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 131 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## General
This is a not very accurate port of the game [realtimebattle](http://realtimebattle.sourceforge.net/) 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.