OSDN Git Service

Implemented CHALLENGE command
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sat, 21 Apr 2007 13:35:07 +0000 (13:35 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sat, 21 Apr 2007 13:35:07 +0000 (13:35 +0000)
changelog
shogi-server

index 6004545..d5c8e45 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,12 @@
+2007-04-21  Daigo Moriwaki <daigo at debian dot org>
+
+       * [shogi-server]
+         - Implemented `CHALLENGE' command, and the server will respond with
+           `CHALLENGE ACCEPTED'. Note that this command is dummy for this server
+           because it is only available for CSA's official testing server and does
+           not belong to the CSA standard protocol.  Therefor, when clients receive
+           `CHALLENGE ACCEPTED' from this server, they must ignore it.
+
 2007-04-01  Daigo Moriwaki <daigo at debian dot org>
 
        * [shogi-server]
index e959b14..f236f9c 100755 (executable)
@@ -638,6 +638,10 @@ class Player < BasicPlayer
           @status = "connected"
           write_safe("LOGOUT:completed\n")
           return
+        when /^CHALLENGE/
+          # This command is only available for CSA's official testing server.
+          # So, this means nothing for this program.
+          write_safe("CHALLENGE ACCEPTED\n")
         when /^\s*$/
           ## ignore null string
         else