README.rdoc in rrschedule-0.1.0 vs README.rdoc in rrschedule-0.1.1

- old
+ new

@@ -1,21 +1,21 @@ = rrschedule -RRSchedule make it easier to generate Round-Robin sport seasons. To generate a schedule, it needs a team list, a season +rrschedule makes it easier to generate Round-Robin schedules for sport leagues. To generate a schedule, it needs a team list, a season start date, the day(s) of the week where the games are played and some other options. It takes into consideration physical constraints such as the number of playing surfaces availables and game times. -Each round of the round-robin is splitted into groups that respect these constraints. +Each round of the round-robin is splitted into multiple gamedays that respect these constraints. Say for example that you want to generate a round-robin schedule for your 15-teams volleyball league. If there are only 3 volleyball fields available and that games are played each monday at 6PM and 8PM, this is technically -impossible to complete one round in a single day (only 6 games can be played). RRSchedule will put the rest of the games -for this round on the next gameday and will start a new round right after. +impossible to complete one round in a single day. rrschedule will put the remaining games of this round on the next gameday +and will start a new round right after. == Installation - gem install rrschedule (not on gemcutter yet... hold on) + gem install rrschedule require 'rrschedule.rb' == Prepare the schedule Time.zone = "America/New_York" teams = ["Rockets","Jetpacks","Snakes","Cobras","Wolves","Huskies","Tigers","Lions", @@ -83,18 +83,21 @@ puts "FACE TO FACE: Lions Vs Moose" games.each do |g| puts g.game_date.to_s + " on playing surface " + g.playing_surface.to_s + " at " + g.game_time.to_s end -=== Iterate the schedule +=== Iterate through schedule schedule.gamedays.each do |gd,games| puts gd puts "====================" games.each do |g| puts g.team_a.to_s + " Vs " + g.team_b.to_s + " on playing surface ##{g.playing_surface} at #{g.game_time}" end puts "\n" end + +== Other -== Copyright +Hope this gem will be useful to some people! +As you can see, there are no tests yet but they should come quite soon. -Copyright (c) 2010 flamontagne. See LICENSE for details. +You can read my blog here: www.rubyfleebie.com