7 return /^floodgate-\d+-\d+$/.match(str) ? true : false
11 attr_reader :next_time, :league
13 def initialize(league, next_time=nil)
15 @next_time = next_time
24 @next_time = Time.mktime(now.year, now.month, now.day, now.hour, 30)
26 @next_time = Time.mktime(now.year, now.month, now.day, now.hour) + 3600
29 # for test, each 30 seconds
31 @next_time = Time.mktime(now.year, now.month, now.day, now.hour, now.min, 30)
33 @next_time = Time.mktime(now.year, now.month, now.day, now.hour, now.min) + 60
39 players = @league.find_all_players do |pl|
40 pl.status == "game_waiting" &&
41 Floodgate.game_name?(pl.game_name) &&
44 Pairing.match(players)
49 end # module ShogiServer