OSDN Git Service

Game names for the Floodgate mode are enhanced.
[shogi-server/shogi-server.git] / shogi-server
index b8c8ac4..e16641e 100755 (executable)
@@ -94,7 +94,7 @@ class League
   class Floodgate
     class << self
       def game_name?(str)
-        return "wdoor-900-0" == str
+        return /^floodgate-\d+-\d+$/.match(str) ? true : false
       end
     end