jasonnoble / rock_paper_scissors

Class Notes

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file README
file Rakefile
directory doc/
directory lib/
directory spec/
README
Rock Paper Scissors Tournament

Use:

  irb -rlib/tournament
  
  >> @t = Tournament.new([RockThrower, PaperThrower])
  => #<Tournament:0x5cf544 @seed=[RockThrower, PaperThrower], @players=[RockThrower, PaperThrower], 
  @matches=[[RockThrower, PaperThrower]]>
  >> @t.run
  PLAYERS: [RockThrower, PaperThrower]
  #<PaperThrower:0x5cc790> won 100% of the time
  #<PaperThrower:0x5cc790> wins the tournament
  => #<PaperThrower:0x5cc790>
  >>