OSDN Git Service

Enhanced the CSA Login mode to accept a turn preference.
authordaigo <beatles@users.sourceforge.jp>
Sun, 5 Sep 2010 14:27:23 +0000 (23:27 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sun, 5 Sep 2010 14:27:23 +0000 (23:27 +0900)
commitfd33baf3cba2786e693ae8d7b93d7b13636a6070
tree7e74738119d0da3ff385d22b7a2bf3ddfaa783b0
parent0d66ead63f79cb32597c0fb54bec6b878bbb68bc
Enhanced the CSA Login mode to accept a turn preference.

Logging in the server with the CSA mode, users are now allowed to
specify a turn preference in an enhanced gamename string which
looks like <gamename>-<time>-<time>-<turn>. The first three
parts are a regular game definition. The last "-<turn>"
part is optional.
+ Without -<turn> (i.e. same as the previous behavior), there
  is no turn preference. A user's turn will be defined randomly.
+ <turn> is either "B" for black or "W" for white.
changelog
shogi_server/login.rb
test/TC_login.rb