OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented CHALLENGE command
[shogi-server/shogi-server.git]
/
shogi-server
diff --git
a/shogi-server
b/shogi-server
index
e959b14
..
f236f9c
100755
(executable)
--- a/
shogi-server
+++ b/
shogi-server
@@
-638,6
+638,10
@@
class Player < BasicPlayer
@status = "connected"
write_safe("LOGOUT:completed\n")
return
@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
when /^\s*$/
## ignore null string
else