shogi-server source
修訂 | 2df870d405d23cadb1f801dbc3a1ca7b246e44e7 (tree) |
---|---|
時間 | 2015-01-17 10:44:28 |
作者 | Daigo Moriwaki <daigo@debi...> |
Commiter | Daigo Moriwaki |
Update various documentations
@@ -4,48 +4,41 @@ The Shogi-server project develops Shogi-server, a rating tool and so on. | ||
4 | 4 | |
5 | 5 | == Shogi-server |
6 | 6 | |
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 | |
8 | 8 | by Computer Shogi Association (CSA[http://www.computer-shogi.org/index_e.html]) |
9 | 9 | in order for computer shogi players to play games. |
10 | 10 | |
11 | 11 | === Pre-requires |
12 | 12 | |
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 | |
19 | 14 | |
20 | 15 | For Debian, |
21 | - $ sudo aptitude install ruby1.9.1 | |
22 | 16 | |
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 | |
25 | 18 | |
26 | 19 | === Install |
27 | 20 | |
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 | |
29 | 22 | |
30 | 23 | The following files are required to run Shogi-server: |
31 | 24 | |
32 | -- shogi-server | |
33 | -- shogi_server.rb | |
34 | -- shogi_server/**/*.rb | |
25 | + - shogi-server | |
26 | + - shogi_server.rb | |
27 | + - shogi_server/**/*.rb | |
35 | 28 | |
36 | 29 | === Run |
37 | 30 | |
38 | 31 | Examples: |
39 | 32 | |
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 | |
41 | 38 | |
42 | - $ ruby1.8 ./shogi-server hoge 4000 | |
39 | + $ ./shogi-server --max-moves 0 --least-time-per-move 1 hoge 4000 | |
43 | 40 | |
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. | |
49 | 42 | |
50 | 43 | == Other tools |
51 | 44 |
@@ -69,14 +62,12 @@ Run test cases | ||
69 | 62 | |
70 | 63 | Tested: |
71 | 64 | |
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 | |
80 | 71 | |
81 | 72 | --- |
82 | -2012-01-07 Daigo Moriwaki <daigo at debian dot org> | |
73 | +2015-01-17 Daigo Moriwaki <daigo at debian dot org> |
@@ -10,19 +10,23 @@ | ||
10 | 10 | - New feature: max moves |
11 | 11 | - New command line option: --max-moves n |
12 | 12 | 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 | |
19 | 21 | 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 | |
21 | 23 | - Least time per move: |
22 | 24 | - 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. | |
26 | 30 | |
27 | 31 | 2014-07-19 Daigo Moriwaki <daigo at debian dot org> |
28 | 32 |
@@ -100,14 +100,17 @@ EXAMPLES | ||
100 | 100 | Run the shogi-server. Then clients can connect to port#4081. |
101 | 101 | The server output logs to the stdout. |
102 | 102 | |
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 \ | |
104 | 107 | --player-log-dir ./player-logs \ |
105 | 108 | test 4081 |
106 | 109 | Run the shogi-server as a daemon. The server outputs regular logs |
107 | 110 | to shogi-server.log located in the current directory and network |
108 | 111 | messages in ./player-logs directory. |
109 | 112 | |
110 | - 3. % ./shogi-server --daemon . --pid-file ./shogi-server.pid \ | |
113 | + 4. % ./shogi-server --daemon . --pid-file ./shogi-server.pid \ | |
111 | 114 | --player-log-dir ./player-logs \ |
112 | 115 | --floodgate-games floodgate-900-0,floodgate-3600-0 \ |
113 | 116 | test 4081 |
@@ -50,7 +50,7 @@ Default_Timeout = 60 # for single socket operation | ||
50 | 50 | Default_Game_Name = "default-1500-0" |
51 | 51 | One_Time = 10 |
52 | 52 | Login_Time = 300 # time for LOGIN |
53 | -Revision = "20131215" | |
53 | +Revision = "20150117" | |
54 | 54 | |
55 | 55 | RELOAD_FILES = ["shogi_server/league/floodgate.rb", |
56 | 56 | "shogi_server/league/persistent.rb", |