Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rock Scissors Paper for Ruby
Ruby
branch: master

This branch is 2 commits ahead, 7 commits behind hcatlin:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bots
lib
README
run.rb

README

=== Official Ruby RPS Library ===

So, I decided to build a Ruby library to facilitate Rock, Scissors, Paper tournaments
between Ruby bots.

The API for building your own bot is extremely simple.

Look at Randomizer and Stubborn for what you need to implement. Its as simple as including
RPS::Bot and then implementing a #next method. History of rounds is available through #history.

The code is ugly, but whatever. It runs. I built this in an hour.

If you want to enter your own bot in the competition, then simply fork the repo, and do a pull request.

Contact me at hcatlin@gmail.com

MIT license, of course. And also Copyright Hampton Catlin.



Something went wrong with that request. Please try again.