• R/O
  • HTTP
  • SSH
  • HTTPS

shogi-server: コミット

shogi-server source


コミットメタ情報

リビジョン2df870d405d23cadb1f801dbc3a1ca7b246e44e7 (tree)
日時2015-01-17 10:44:28
作者Daigo Moriwaki <daigo@debi...>
コミッターDaigo Moriwaki

ログメッセージ

Update various documentations

変更サマリ

差分

--- a/README
+++ b/README
@@ -4,48 +4,41 @@ The Shogi-server project develops Shogi-server, a rating tool and so on.
44
55 == Shogi-server
66
7-Shogi-server is a server that implements the Server Protocol Ver 1.1 defined
7+Shogi-server is a server that implements the Server Protocol Ver 1.2.1 defined
88 by Computer Shogi Association (CSA[http://www.computer-shogi.org/index_e.html])
99 in order for computer shogi players to play games.
1010
1111 === Pre-requires
1212
13-Ruby 1.9.3 or 1.8.7
14-
15-As of January 2012, Shogi-server supports both Ruby 1.9.3 and 1.8.7. In
16-future, however, it will only work with Ruby 1.9.x. The Ruby community
17-claimed that Ruby 1.8 had no future. It is recommended that you soon
18-upgrade to Ruby 1.9.3.
13+Ruby 2.1 or later
1914
2015 For Debian,
21- $ sudo aptitude install ruby1.9.1
2216
23-Note that the latest ruby1.9.1 package in Debian originates from Ruby 1.9.3.
24-"1.9.1" in the package name is Ruby internal API version, not release version.
17+ $ sudo aptitude install ruby
2518
2619 === Install
2720
28- $ git clone git://git.sourceforge.jp/gitroot/shogi-server/shogi-server.git
21+ $ git clone git://git.sourceforge.jp/gitroot/shogi-server/shogi-server.git
2922
3023 The following files are required to run Shogi-server:
3124
32-- shogi-server
33-- shogi_server.rb
34-- shogi_server/**/*.rb
25+ - shogi-server
26+ - shogi_server.rb
27+ - shogi_server/**/*.rb
3528
3629 === Run
3730
3831 Examples:
3932
40- $ ./shogi-server hoge 4000
33+Run the server with CSA Protocol V1.2 or later
34+
35+ $ ./shogi-server hoge 4000
36+
37+With CSA Protocol V1.1.2 or before
4138
42- $ ruby1.8 ./shogi-server hoge 4000
39+ $ ./shogi-server --max-moves 0 --least-time-per-move 1 hoge 4000
4340
44- $ ruby1.9.1 ./shogi-server --pid-file shogi-server.pid \
45- --daemon . \
46- --player-log-dir player-log-dir \
47- --floodgate-history floodgate_history.yaml \
48- floodgatetest 4000
41+See others written in the 'shogi-server' file.
4942
5043 == Other tools
5144
@@ -69,14 +62,12 @@ Run test cases
6962
7063 Tested:
7164
72-- ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
73- Finished tests in 83.667928s, 4.2669 tests/s, 11.7249 assertions/s.
74- 357 tests, 981 assertions, 0 failures, 0 errors, 0 skips
75-
76-- ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
77- Finished in 69.885457 seconds.
78- 357 tests, 977 assertions, 0 failures, 0 errors
79-
65+- ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
66+ Finished in 55.025733 seconds.
67+ 383 tests, 1370 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
68+ 100% passed
69+ 6.96 tests/s, 24.90 assertions/s
70+ ruby TC_ALL.rb 1.97s user 0.34s system 4% cpu 55.424 total
8071
8172 ---
82-2012-01-07 Daigo Moriwaki <daigo at debian dot org>
73+2015-01-17 Daigo Moriwaki <daigo at debian dot org>
--- a/changelog
+++ b/changelog
@@ -10,19 +10,23 @@
1010 - New feature: max moves
1111 - New command line option: --max-moves n
1212 When a game with the n-th move played does not end, make the
13- game a draw (default 256). 0 disables this feature.
14- - Players will receive a new message, "#MAX_MOVES_DRAW", upon
15- an end of such a game:
16- #MAX_MOVES_DRAW
17- #DRAW
18- - A new log summary type, "max_moves_draw", has been assigned for games
13+ game a draw (default 256 in compliance with CSA Protocol V1.2
14+ or later). Setting 0 disables this feature for
15+ CSA Protocol V1.1.2 or before.
16+ - Players will receive a new message, "#MAX_MOVES", upon an end
17+ of such a game:
18+ #MAX_MOVES
19+ #CENSORED
20+ - A new log summary type, "max_moves", has been assigned for games
1921 drawing with max moves.
20- 'summary:max_moves_draw:name_sente draw:name_gote draw
22+ 'summary:max_moves:name_sente draw:name_gote draw
2123 - Least time per move:
2224 - New command line option: --least-time-per-move n
23- This opotion specifies a least time in second per move, which
24- is 1 second by default. Setting 0 means that a decimal
25- fraction of time for a move will be truncated.
25+ This option specifies a least time in second per move, which
26+ is 0 second by default, meaning that a decimal
27+ fraction of time for a move will be truncated in compliance
28+ with CSA Protocol V1.2 or later.
29+ Set 1 for CSA Protocol V1.1.2 or before.
2630
2731 2014-07-19 Daigo Moriwaki <daigo at debian dot org>
2832
--- a/shogi-server
+++ b/shogi-server
@@ -100,14 +100,17 @@ EXAMPLES
100100 Run the shogi-server. Then clients can connect to port#4081.
101101 The server output logs to the stdout.
102102
103- 2. % ./shogi-server --daemon . --pid-file ./shogi-server.pid \
103+ 2. % ./shogi-server --max-moves 0 --least-time-per-move 1 test 4081
104+ Run the shogi-server in compliance with CSA Protocol V1.1.2 or before.
105+
106+ 3. % ./shogi-server --daemon . --pid-file ./shogi-server.pid \
104107 --player-log-dir ./player-logs \
105108 test 4081
106109 Run the shogi-server as a daemon. The server outputs regular logs
107110 to shogi-server.log located in the current directory and network
108111 messages in ./player-logs directory.
109112
110- 3. % ./shogi-server --daemon . --pid-file ./shogi-server.pid \
113+ 4. % ./shogi-server --daemon . --pid-file ./shogi-server.pid \
111114 --player-log-dir ./player-logs \
112115 --floodgate-games floodgate-900-0,floodgate-3600-0 \
113116 test 4081
--- a/shogi_server.rb
+++ b/shogi_server.rb
@@ -50,7 +50,7 @@ Default_Timeout = 60 # for single socket operation
5050 Default_Game_Name = "default-1500-0"
5151 One_Time = 10
5252 Login_Time = 300 # time for LOGIN
53-Revision = "20131215"
53+Revision = "20150117"
5454
5555 RELOAD_FILES = ["shogi_server/league/floodgate.rb",
5656 "shogi_server/league/persistent.rb",
旧リポジトリブラウザで表示