OSDN Git Service

* [shogi-server] When a non-rated player participates in Floodgate, the following... 20141227
authorDaigo Moriwaki <daigo@debian.org>
Sat, 27 Dec 2014 13:10:00 +0000 (22:10 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sat, 27 Dec 2014 13:10:00 +0000 (22:10 +0900)
commitad33950bea1680fed0523fed7b71b439bed3f340
treee3b7693c882dc7cf4cb0e09fc48d666f38ce7929
parentdd0c79d4efe19ccdd1b0b36c78e636ae85e1aafe
* [shogi-server] When a non-rated player participates in Floodgate, the following exception was thrown and a Floodgate game would not start:

      undefined method `[]' for nil:NilClass
      ["/home/shogi-server/www/x/shogi_server/pairing.rb:499:in `block
      in calculate_diff_with_penalty'"

    This issue has been resolved. Only players who have player ID
    (i.e. those who log in with valid password) are now allowed to
    participate in Floodgate as the spec web page
    [http://shogi-server.sourceforge.jp/rating.html] describes.
changelog
shogi_server/league/floodgate.rb
test/TC_floodgate.rb