Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

bathruby/battlebots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battlebots

Setup for an AI-based tank game based on RTanque

Requirements

Setup

$ git clone [email protected]:bathruby/battlebots.git
$ cd battlebots
$ bundle install

Vagrant

If you don't have the dependencies installed or you are running on Windows, you can use Vagrant to create a Virtual Machine with all dependencies set up automatically. Install Vagrant and Virtualbox, then run vagrant up from the root of this repository and you should see the VM start up & dependencies be downloaded and installed.

$ git clone [email protected]:bathruby/battlebots.git
$ cd battlebots
$ vagrant up

Once you see the GUI login menu appear (after a VM restart), log in with the "Vagrant" user, password "vagrant", open a terminal, cd /vagrant and start playing as below:

How to play

Generate a new bot with:

$ bundle exec rtanque new_bot my_deadly_bot

Run a test match with:

$ bundle exec rtanque start bots/my_deadly_bot sample_bots/keyboard sample_bots/camper:x2

Then fork the project on GitHub and add your bot to the bot folder and send it back as a pull request.

Check out the RTanque documentation: http://www.rubydoc.info/github/awilliams/RTanque/ and existing bots: https://github.com/awilliams/RTanque/wiki/bot-gists

About

💥 Battlebots arena for January Bath Ruby meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published