public
Fork of hcatlin/rubyrps
Description: Rock Scissors Paper for Ruby
Homepage:
Clone URL: git://github.com/wmoxam/rubyrps.git
rubyrps / README
100644 21 lines (10 sloc) 0.652 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
=== 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.