OSDN Git Service

[shogi-server] Create a directory for a PID file. (Closes #38546)
[shogi-server/shogi-server.git] / changelog
1 2018-08-25  Daigo Moriwaki <daigo at debian dot org>
2
3         * [shogi-server] Support a graceful shutdown.
4           A file named "STOP" in the base directory prevents the server from
5           starting new games including Floodgate matches.
6           (Closes #38544)
7         * [shogi-server] Create a directory for a PID file.
8           To put a PID file such as /var/run/shogi-server/shogi-server.pid, if
9           directories do not exist, they will be created recursively.
10           (Closes #38546)
11
12 2018-04-07  Daigo Moriwaki <daigo at debian dot org>
13
14         * [shogi-server] Give more penalty on assigning matches with same
15           players.
16           (Closes #38178)
17
18 2017-09-03  Daigo Moriwaki <daigo at debian dot org>
19
20         * [shogi-server] Write game results in categorical files
21           The shogi-server now writes down game results in the following
22           files, depending on a game class:
23           - 00LIST: all games
24           - 00LIST.floodgate: floodgate games
25           - 00LIST.others: non-floodgate games
26           (Closes  #37492)
27
28 2017-09-02  Daigo Moriwaki <daigo at debian dot org>
29
30         * [shogi-server] Write more game results in record files
31           As the CSA Record Format standard states, "%TIME_UP" and
32           "%SENNICHITE" are now recorded in CSA files when a game ends for
33           timed up or sennichite respectively.
34           (Closes #37490)
35         * [shogi-server, mk_game_results, mk_rate] Change schema to add number of
36           moves The format of an internal game result summary file, '00LIST',
37           has been changed to add number of moves of a game, which would be of
38           help for a script calculating rating scores.
39           (Closes #37491)
40         * Update Revision to 20170902
41
42 2017-02-26 Daigo Moriwaki <daigo at debian dot org>
43
44         * utils/csa-filter.rb: Allow csa-filter.rb to filter games by a winner or loser
45           New command lines, --winner <player> or --loser <player>, are now
46           supported to supply extra filtering conditions. Note that each
47           filter is combined as AND condition.
48           E.g.
49           - % ./csa-filter.rb ~/Downloads/20160314 --white gpsfish_xeon --loser gpsfish_xeon
50           - % ./csa-filter.rb ~/Downloads/20160314 --white gpsfish_xeon --winner gpsfish_xeon
51           (Closes #37023)
52
53 2016-12-11  Daigo Moriwaki <daigo at debian dot org>
54
55         * Update Revision to 20161211.
56         * Fix Dockerfile.
57
58 2016-12-09  Daigo Moriwaki <daigo at debian dot org>
59
60         * Allow util/statistics.rb to set a filtering condition of found files
61           Regarding util/statistics.rb, add a new command line option,
62           --filter regexp, to process files that are matched with a regexp.
63           It would make it easier to calculate statistics of certain games.
64           (Closes #36855)
65
66 2016-11-26  Daigo Moriwaki <daigo at debian dot org>
67
68         * [shogi-server] Allow to customize maximum lenght of a login indentifier
69           (Closes #36821)
70           - The current maximum length of a login identifier is 32. Some
71             private uses require longer player names to distinguish each other
72             by specifying randomly generated tokens. It would of help to add a
73             new command line option --max-identifier to overwrite the default
74             maximum length.
75         * Build a Docker image for Shogi-server
76           (Closes #36822)
77           - Build a Docker image
78               % make image-build
79           - Running a local shogi-server would look like
80               % docker pull shogiserver/shogiserver
81               % docker run -p 4081:4081 -v `pwd`/logs:/logs shogiserver/shogiserver
82         * [shogi-server] shogi_server/game.rb:
83           - Remove a debug message
84
85 2016-04-09  Daigo Moriwaki <daigo at debian dot org>
86
87         * utils/eval_graph.rb
88           - Support Fischer time control.
89         * [shogi-server] Bump up the revision to 20160409.
90
91 2016-04-02  Daigo Moriwaki <daigo at debian dot org>
92
93         * [shogi-server] Support Fischer Time Control
94           (Closes #36230)
95           - Fischer time control means that:
96             Before a player has made their move, a specified time increment is
97             added to their clock. Time can be accumulated, so if the player
98             moves within the delay period, their remaining time actually
99             increases.
100             (https://en.wikipedia.org/wiki/Chess_clock)
101           - New syntax of game names:
102             An 'F' suffix denotes a Fisher time in seconds. For example,
103             "floodgate-600-10F" specifies
104               + A floodgate game
105               + Total allotted time is 600 seconds for each player
106               + 10-second increment before a player's move in a Fischer way
107           - The server now proposes game conditions upon a game start with
108             - "Protocol_Version 1.2"
109             - "Increment:<n>" for Fischer Time Control
110           - Kifu files can include the following comment for Fischer Time
111             Control:
112             - "'Increment:<n>"
113         * [shogi-server] Fix some lint warnings.
114
115 2015-12-13  Daigo Moriwaki <daigo at debian dot org>
116
117         * [shogi-server] Enhance capability of Floodgate configuration file
118           - New parameter: Max_Moves, defined in the CSA protocol
119             ex. set Max_Moves 256
120           - New parameter: Least_Time_Per_Move, defined in the CSA protocol
121             ex. set Least_Time_Per_Move 0
122           - Proposed messages distributed to each player upon starting a new
123             game will include Max_Moves as well as Least_Time_Per_Move.
124           - CSA files produced by the server will include settings of
125             Max_Moves and Least_Time_Per_Move in comment lines as follows:
126               'Max_Moves:256
127               'Least_Time_Per_Move:0
128           - The official Shogi-server on wdoor.c.u-tokyo.ac.jp will
129             be running with different parameters, depending on game names.
130             a) Max_Moves will be 256 for floodgate-600-10 games;
131                otherwise, 0.
132             b) Least_Time_Per_Move will be 0 for floodgate-600-10 games;
133                otherwise 1.
134           (Closes: #35839)
135         * [shogi-server] shogi_server/pairing.rb:
136           - LeastDiff attempts more trials, depending of a number of players
137             to be matched, top achieve more optimized matching combinations.
138
139 2015-11-27  Daigo Moriwaki <daigo at debian dot org>
140
141         * [shogi-server] shogi_server/time_clock.rb:
142           - A time consumed could be -1.
143             * The start time of a move is captured after sending a move to a
144               player of the next turn at the end of the giant lock
145             * The end time of the move is captured at the exact time when the
146               server receives it before the giant lock
147             Therefore, end_time < start_time is possible when a player returns a
148             move instantly.
149             Thanks to Tomoyuki Kaneko for reporting this issue.
150             (Closes: #35795)
151
152 2015-02-14  Daigo Moriwaki <daigo at debian dot org>
153
154         * util/statistics.rb:
155           - Updated to investigate floodgate-600-10 games.
156             Consult the result at
157             http://www.sgtpepper.net/hyspro/diary/20150214.html.
158           - Added a companion R script: histogram.R 
159
160 2015-02-01  Daigo Moriwaki <daigo at debian dot org>
161
162         * [shogi-server]
163           - shogi_server/login.rb: When players are logged in, log their
164             player_id if they have it.
165
166 2015-01-20  Daigo Moriwaki <daigo at debian dot org>
167
168         * [mk_rate]
169           - Getting an absolute path of this file was wrong if it was a
170             symbolic link. This issue has been addressed.
171         * [mk_html]
172           - Links to details pages for players now use a relative path so
173             that it works on a testing site.
174
175 2015-01-17  Daigo Moriwaki <daigo at debian dot org>
176
177         * [shogi-server]
178           - shogi-server, shogi_server/{command,game_result,player}.rb:
179             The change at 2014-10-13 was not worked as expected. Reworked.
180             A player, attempting to login with the current live player
181             stalling for more than a day, can forcibly override the current
182             player.
183
184 2015-01-12  Daigo Moriwaki <daigo at debian dot org>
185
186         * [shogi-server]
187           - shogi_server.rb: Follow an API change in a upstream class:
188             LogDevice.previous_period_end
189
190 2014-12-27  Daigo Moriwaki <daigo at debian dot org>
191
192         * [shogi-server]
193           - When a non-rated player participates in Floodgate, the following exception
194             was thrown and a Floodgate game would not start:
195               undefined method `[]' for nil:NilClass
196               ["/home/shogi-server/www/x/shogi_server/pairing.rb:499:in `block
197               in calculate_diff_with_penalty'"
198             This issue has been resolved. Only players who have player ID
199             (i.e. those who log in with valid password) are now allowed to
200             participate in Floodgate as the spec web page
201             [http://shogi-server.sourceforge.jp/rating.html] describes.
202
203 2014-12-23  Daigo Moriwaki <daigo at debian dot org>
204
205         * [shogi-server]
206           - Addressed Ruby incompatibility on ShogiServer::Usi::alphabetToDan.
207             It (and usiToCsa.rb) did not work with Ruby 1.9.3. This issue
208             has now been fixed.
209             Thanks to Hiraoka-san for debugging.
210
211 2014-12-18  Daigo Moriwaki <daigo at debian dot org>
212
213         * utils/eval_graph.rb:
214           - Gnuplot 4.6.6 drew evaluation-value lines with a dashed style.
215             This issue has now been addressed so that solid lines are used.
216
217 2014-11-30  Daigo Moriwaki <daigo at debian dot org>
218
219         * [mk_html]
220           - Corrected a url.
221
222 2014-11-24  Daigo Moriwaki <daigo at debian dot org>
223
224         * Ruby 2.0:
225           - Ruby 2.0.0 or later is recommended to use with shogi-server
226             since Ruby 1.8 reached its End-of-Life on the end of July, 2014.
227         * [shogi-server]
228           - Addressed a warning of duplicated range in a regular expression.
229
230 2014-10-13  Daigo Moriwaki <daigo at debian dot org>
231
232         * [shogi-server]
233           - A player, attempting to login with the current live player
234             stalling for more than a day, can forcibly override the current
235             player.
236           - Kifu record files now includes rating scores of players at the
237             time when games start.  Previously, for rating games, a record
238             file includes player IDs of both players with a line starting with
239             "'rating".  Now it also shows rating scores for players who have
240             valid scores.  The formats for black and white players are as
241             follows:
242               'black_rate:<player_id>:<score>
243               'white_rate:<player_id>:<score>
244             A sample output:
245               'rating:Test_sente+275876e34cf609db118f3d84b799a790:Test_gote+275876e34cf609db118f3d84b799a790
246               'black_rate:Test_sente+275876e34cf609db118f3d84b799a790:2763.0
247               'white_rate:Test_gote+275876e34cf609db118f3d84b799a790:2345.0
248
249 2014-10-12  Daigo Moriwaki <daigo at debian dot org>
250
251         * [shogi_server]
252           - New feature: max moves
253             - New command line option: --max-moves n
254               When a game with the n-th move played does not end, make the
255               game a draw (default 256 in compliance with CSA Protocol V1.2
256               or later).  Setting 0 disables this feature for
257               CSA Protocol V1.1.2 or before.
258             - Players will receive a new message, "#MAX_MOVES", upon an end
259               of such a game:
260                 #MAX_MOVES
261                 #CENSORED
262             - A new log summary type, "max_moves", has been assigned for games
263               drawing with max moves.
264               'summary:max_moves:name_sente draw:name_gote draw
265           - Least time per move:
266             - New command line option: --least-time-per-move n
267               This option specifies a least time in second per move, which
268               is 0 second by default, meaning that a decimal
269               fraction of time for a move will be truncated in compliance
270               with CSA Protocol V1.2 or later.
271               Set 1 for CSA Protocol V1.1.2 or before.
272
273 2014-07-19  Daigo Moriwaki <daigo at debian dot org>
274
275         * [mk_rate]
276           - Added a new option, --abnormal-threshold n:
277             Games that end with the 'abnormal' status are counted in
278             win/lost games for the rating calculation if a game plays more
279             than n plies. Otherwise (or if n is zero), abnormal games are
280             counted out of rating games.
281
282 2014-01-07  Daigo Moriwaki <daigo at debian dot org>
283
284         * [shogi-server]
285           - Released: Revision "20140107"
286
287 2013-12-29  Daigo Moriwaki <daigo at debian dot org>
288
289         * [shogi-server]
290           - Previously, parameters in Floodgate time configuration file were
291             not applied to actual instances. This issue has been fixed.
292
293 2013-12-21  Daigo Moriwaki <daigo at debian dot org>
294
295         * [shogi-server]
296           - shogi_server/pairing.rb: Impose penalty on matches between
297             likely kin players.
298
299 2013-12-15  Daigo Moriwaki <daigo at debian dot org>
300
301         * [webserver]
302           - Listen on only IPv4 explicitly. Under ruby 1.9.3p194, without
303             any bind addresses, ruby attempts to listen on both "0.0.0.0"
304             and "::". Specifying "::" on Linux leads to listen on both IPv4
305             and IPv6, which results in a warning message saying "Address
306             already in use - bind(2)".
307         * [shogi-server]
308           - Released: Revision "20131215"
309
310 2013-12-14  Daigo Moriwaki <daigo at debian dot org>
311
312         * [usiToCsa]
313           - Added a new program, bin/usiToCsa.rb, which is a bridge for a
314             USI engine to connect to the Shogi-server.
315           - bin/usiToCsa is a sample wrapper script.
316
317 2013-12-13  Daigo Moriwaki <daigo at debian dot org>
318
319         * [shogi-server]
320           - shogi_server/league/floodgate_thread.rb:
321             - Added a log message.
322
323 2013-12-08  Daigo Moriwaki <daigo at debian dot org>
324
325         * [shogi-server]
326           - shogi-server/shogi_server/pairing.rb:
327             - Modified comment for LeastDiff match.
328             - Changed log messages and levels. 
329
330 2013-12-07  Daigo Moriwaki <daigo at debian dot org>
331
332         * [shogi-server]
333           - shogi_server/pairing.rb, player.rb:
334             Simplify estimated rate of unrated players (less memory).
335           - Enhanced syntax of Floodgate time configuration file.
336             Now it supports "set sacrifice <player_id>"; it sets a
337             sacrificed player for a specific Floodgate game.
338             ex. set sacrifice gps500+e293220e3f8a3e59f79f6b0efffaa931
339
340 2013-12-05  Daigo Moriwaki <daigo at debian dot org>
341
342         * [shogi-server]
343           - Added a new pairing method, ShogiServer::ExcludeUnratedPlayers,
344             which filters out unrated players.
345           - Enhanced syntax of Floodgate time configuration file.
346             Now it supports "set pairing_factory <function_name>"; it sets a
347             factory function name generating a pairing method which will be
348             used in a specific Floodgate game.
349             ex. set pairing_factory floodgate_zyunisen 
350           - Implemented conversion of move representation between CSA format
351             and USI one.
352
353 2013-11-24  Daigo Moriwaki <daigo at debian dot org>
354
355         * [shogi-server]
356           - shogi_server/league/floodgate.rb: Improved robustness against
357             empty file under ruby 1.9.3p194
358           - shogi-server:
359             - Previously, reloading in daemon mode failed on
360               ruby 1.9.3p194. This issue has been fixed.
361             - Listen on only IPv4 explicitly. Under ruby 1.9.3p194, without
362               any bind addresses, ruby attempts to listen on both "0.0.0.0"
363               and "::". Specifying "::" on Linux leads to listen on both IPv4
364               and IPv6, which results in a warning message saying "Address
365               already in use - bind(2)".
366         * [mk_game_results]
367           - Fixed for reading Japanese comments under ruby1.9.3p194.
368         * mk_rate-from-grep, mk_rate-grep:
369           - Removed files that are no longer used.
370
371 2013-11-23  Daigo Moriwaki <daigo at debian dot org>
372
373         * [mk_rate]
374           - gsl library may be provided as a gem
375           - Now duplicated inputs are checked and skipped.
376         * test/TC_floodgate.rb
377           - Improved randomness check so that it works on Ruby 2.0.0 as well
378
379 2013-11-04  Daigo Moriwaki <daigo at debian dot org>
380
381         * [mk_rate]
382           - Added a new option, --ignore, which is imported from
383             mk_rate-from-grep.
384         * [mk_game_results]
385           - Flush after each output line.
386         * Rleased: Revision "20131104"
387
388 2013-09-08  Daigo Moriwaki <daigo at debian dot org>
389
390         * [shogi-server]
391           - shogi_server/{game,time_clock}.rb:
392             When StopWatchClock is used, "Time_Unit:" of starting messages
393             in CSA protocol supplies "1min".
394
395 2013-04-07  Daigo Moriwaki <daigo at debian dot org>
396
397         * [shogi-server]
398           - shogi_server/{game,time_clock}.rb:
399             Adds variations of thinking time calculation: ChessClock
400             (current) and StopWatchClock (new).
401             StopWatchClock, which is usually used at official games of human
402             professional players, is a clock where thiking time less than a
403             miniute is regarded as zero.
404             To select StopWatchClock, use a special game name with "060"
405             byoyomi time. ex. "gamename_1500_060".
406
407 2013-03-31  Daigo Moriwaki <daigo at debian dot org>
408
409         * [shogi-server]
410           - %%FORK command: %%FORK <source_game> [<new_buoy_game>] [<nth-move>]
411             The new_buoy_game parameter is now optional. If it is not
412             supplied, Shogi-server generates a new buoy game name from
413             source_game.
414           - command.rb: More elaborate error messages for the %%GAME command.
415
416 2013-03-20  Daigo Moriwaki <daigo at debian dot org>
417
418         * [shogi-server]
419           - New pairing algorithm: ShogiServer::Pairing::LeastDiff
420             This pairing algorithm aims to minimize the total differences of
421             matching players' rates. It also includes penalyties when a match
422             is same as the previous one or a match is between human players.
423             It is based on a discussion with Yamashita-san on
424             http://www.sgtpepper.net/kaneko/diary/20120511.html.
425
426 2013-02-23  Daigo Moriwaki <daigo at debian dot org>
427
428         * [shogi-server]
429           - New command: %%FORK <source_game> <new_buoy_game> [<nth-move>]
430             Fork a new game from the posistion where the n-th (starting from
431             one) move of a source game is played. The new game should be a
432             valid buoy game name. The default value of n is the position
433             where the previous position of the last one.
434             - The objective of this command: The shogi-server may be used as
435             the back end server of computer-human match where a human player
436             plays with a real board and someone, or a proxy, inputs moves to
437             the shogi-server. If the proxy happens to enter a wrong move,
438             with this command you can restart a new buoy game from the
439             previous stable position.
440             ex. %%FORK server-denou-14400-60+p1+p2+20130223185013 buoy_denou-14400-60
441
442 2012-12-30  Daigo Moriwaki <daigo at debian dot org>
443
444         * [shogi-server]
445           - Backported a5c94012656902e73e00f46e7a4c7004b24d4578:
446             test/TC_logger.rb depeneded on a specific directory where it was
447             running on. This issues has been fixed.
448           - Backported 87d145bd1f1a14a33f5f6fbc78b63a1952f1ca90 and
449             2df8c798aeb7f0e77735e893fd1370c2c6f15c4d:
450             shogi_server/floodgate.rb: Generating next time around the new
451             year day by reading configuration files did not work correctly.
452             This issue has been fixed.
453
454 2012-12-28  Daigo Moriwaki <daigo at debian dot org>
455
456         * [shogi-server]
457           - shogi_server/pairing.rb:
458             + There was a bug in the logic avoiding human-human match.
459               This issue has been fixed.
460             + Improved the logic avoiding human-human match. Human-human
461               matches will less likely happen.
462
463 2012-01-07  Daigo Moriwaki <daigo at debian dot org>
464
465         * [shogi-server]
466           - Added shogi_server/compatible.rb, which implements compatible
467             methods and allows Ruby 1.8.7 to run the server.
468           - test/TC_floodgate.rb failed with Ruby 1.8.7. This issue has
469             been fixed.
470           - test/TC_uchifuzume.rb did not run with Ruby 1.8.7. This issue
471             has been fixed.
472           - test/TC_league.rb failed with Ruby 1.8.7. This issue has been
473             fixed.
474         * csa-file-filter,mk_game_results,mk_html,mk_rate:
475           - Updated documents in the command files.
476             Both Ruby 1.9.3 and 1.8.7 are supported.
477           - Make their shebang consistent (/usr/bin/ruby1.9.1)
478         * README:
479           - Both Ruby 1.9.3 and 1.8.7 are supported.
480         * Renewed year of copyright notice in each file.
481
482 2012-01-06  Daigo Moriwaki <daigo at debian dot org>
483
484         * [shogi-server]
485           - test/TC_logger.rb depeneded on a specific directory where it was
486             running on. This issues has been fixed.
487
488 2012-01-01  Daigo Moriwaki <daigo at debian dot org>
489
490         * [shogi-server]
491           - shogi_server/floodgate.rb: Generating next time around the new
492             year day by reading configuration files did not work correctly.
493             This issue has been fixed.
494
495 2011-12-18  Daigo Moriwaki <daigo at debian dot org>
496
497         * [shogi-server]
498           - shogi_server/board.rb, piece.rb: Refactoring to cache OU pieces,
499             which was inspired by 81SquareShogi-server's change
500             (74b24b88c843f1dd767412475b117481d1d5e8eb).
501           - Added shogi-server-profile to take profile of shogi-server.
502         * [mk_rate] [mk_game_results]
503           - Supports Ruby 1.9.3.
504
505 2011-12-12  Daigo Moriwaki <daigo at debian dot org>
506
507         * [shogi-server]
508           - Support Ruby 1.9.3.
509           - Result of test/benchmark.rb
510             - Environment:
511               - CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+  
512               - RAM: 4GB
513               - OS: Debian Squeeze
514               - ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
515               - ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
516             - Server:  ruby1.8 (or ruby1.9.1) ./shogi-server hoge 4000
517             - Clients: ruby1.8 (or ruby1.9.1) -d ./benchmark.rb
518               csa/wdoor+floodgate-900-0+gps_normal+gps_l+20100507120007.csa 20
519             - Scores in seconds: (the smaller, the better)
520                             clients
521                             1.8.7   1.9.3
522               server 1.8.7  20 sec  21 sec
523                      1.9.3  26 sec  27 sec
524
525 2010-10-06  Daigo Moriwaki <daigo at debian dot org>
526
527         * [shogi-server]
528           - mk_rate: the usage was not updated.
529             Thanks to Hoki-san to report this issue.  (Closes: #23358)
530
531 2010-09-18  Daigo Moriwaki <daigo at debian dot org>
532
533         * [shogi-server]
534           - shogi_server/board.rb, game.rb: For hadicapped games, wrong
535             initial positions were delivered to players and monitors.  This
536             issue has been fixed. (Closes: #23245) 
537             Thanks to HIDETCHI for reporting the issue.
538
539 2010-09-05  Daigo Moriwaki <daigo at debian dot org>
540
541         * [shogi-server]
542           - shogi_server/login.rb: Enhanced the CSA Login mode.
543             Logging in the server with the CSA mode, users are now allowed to
544             specify a turn preference in an enhanced gamename string which
545             looks like <gamename>-<time>-<time>-<turn>. The first three 
546             parts are a regular game definition. The last "-<turn>"
547             part is optional. 
548             + Without -<turn> (i.e. same as the previous behavior), there
549             is no turn preference. A user's turn will be defined randomly. 
550             + <turn> is either "B" for black or "W" for white.
551
552 2010-09-04  Daigo Moriwaki <daigo at debian dot org>
553
554         * [shogi-server]
555           - shogi_server/{board,command,game,league,player}.rb
556             The Buoy behavior is changed.
557             + Starting a buoy game, players are notified a starting game
558               position with the initial position and moves, instead of a
559               targeting position.
560             + Players are allowed to start buoy games with specific turns.
561               ex. %%GAME buoy_foo-1500-0 +
562
563 2010-08-05  Daigo Moriwaki <daigo at debian dot org>
564
565         * [shogi-server]
566           - shogi_server/command.rb: Prevent a possible password from be
567             logged in a log file when players send invalid LOGIN-like commands.
568             Thanks to Tomoyuki Kaneko for this idea.
569
570 2010-08-03  Daigo Moriwaki <daigo at debian dot org>
571
572         * [shogi-server]
573           - sample/{check_file.rb,check_time.rb,check_time2.rb,test_time.rb}:
574             Added new files to test an issue where mtime of log files was
575             earlier than system time.
576           - shogi_server/league/floodgate_thread.rb: SetupFloodgate#start
577             now returns an instance correctly.
578           - ../shogi_server.rb, ../shogi_server/util.rb: Refactored
579             mkdir_for to Mkdir.mkdir_for.
580           - ../shogi_server/game.rb: mkdir_p will be performed in a global
581             mutex of ShogiServer::Mkdir.
582
583 2010-07-25  Daigo Moriwaki <daigo at debian dot org>
584
585         * [shogi-server]
586           - shogi_server/command.rb: 
587             + For an unknown error command log, an empty line is no longer logged.
588             + Commands specific to 81Dojo, starting with '%%%', are just
589               ignored instead of unknown command errors.
590           - shogi_server.rb: 
591             + Refactoring. Added test/TC_logger.rb to test
592               ShogiServer::Logger class.
593             + Fixed race condition: creating a new directory to archive
594               logs may have caused race condition, which ended up with
595               making the server unavailable. This issue has been fixed. 
596           - shogi-server:
597             + Improved fault tolerance of the server.
598
599 2010-07-23  Daigo Moriwaki <daigo at debian dot org>
600
601         * [shogi-server]
602           - shogi_server/league/floodgate_thread.rb: When the server run
603             with DEBUG mode, it ended up with an undefined variable error. 
604             This issue has been fixed.
605
606 2010-07-17  Daigo Moriwaki <daigo at debian dot org>
607
608         * [shogi-server]
609           - shogi_server.rb, shogi_server/board.rb, shogi_server/move.rb
610             - Refactoring: Board can now move_to() and move_back() a move
611               instead of deep_copy().
612
613 2010-07-11  Daigo Moriwaki <daigo at debian dot org>
614
615         * [shogi-server]
616           - shogi_server/player.rb: Set initial values to BasicPlayer's
617             instance variables.
618           - shogi_server/league.rb: Improved performance of
619             Persistant#get_players. It took about 20 seconds for a large
620             size of players (5,300 lines in players.yaml). Now it completes in an
621             instance.
622
623 2010-06-22  Daigo Moriwaki <daigo at debian dot org>
624
625         * [shogi-server]
626           - A new command line option: 
627               --floodgate-names GameStringA[,GameStringB[,...]]
628             where a game string should be a valid game name such as
629             floodgate-900-0.  
630             .
631             Note: Without this option, no floodgate games are started. If
632             you want floodgate-900-0 to run, which was default enabled in
633             previous versions, you need to specify the game name in this new
634             option.
635           - Floodgate time configuration file:
636             You need to set starting times of floodgate groups in
637             configuration files under the top directory. Each floodgate
638             group requires a corresponding configuration file named
639             "<game_name>.conf". The file will be re-read once just after a
640             game starts. 
641             .
642             For example, a floodgate-3600-30 game group requires
643             floodgate-3600-30.conf.  However, for floodgate-900-0 and
644             floodgate-3600-0, which were default enabled in previous
645             versions, configuration files are optional if you are happy with
646             default time settings.
647             File format is:
648               Line format: 
649                 # This is a comment line
650                 DoW Time
651                 ...
652               where
653                 DoW := "Sun" | "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" |
654                        "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" |
655                        "Friday" | "Saturday" 
656                 Time := HH:MM
657              
658               For example,
659                 Sat 13:00
660                 Sat 22:00
661                 Sun 13:00
662
663 2010-06-01  Daigo Moriwaki <daigo at debian dot org>
664
665         * [shogi-server]
666           - shogi_server/command.rb: Fixed an issue that MONITOR2OFF did not
667             work. Thanks to HIDECHI and koudayu.
668
669 2010-05-10  Daigo Moriwaki <daigo at debian dot org>
670
671         * [shogi-server]
672           - test/*.rb: Improved performance and stability of tests
673           - shogi_server/player.rb: Help the write_thread to terminate
674
675 2010-05-06  Daigo Moriwaki <daigo at debian dot org>
676
677         * [mk_rate]
678           - Previously mk_rate did not count in draw games. Now a draw game
679             is considered to weight 0.5 win and 0.5 loss. Respect
680             Inaniwa-shogi which strategically aims to draw.
681           - a new command line option, --skip-draw-games. In this mode, draw
682             games are just ignored as mk_rate previously did.
683
684 2010-04-25  Daigo Moriwaki <daigo at debian dot org>
685
686         * [shogi-server]
687           - shogi_server/player.rb:
688             Log a warning message in a case that a player closes a
689             connection suddenly.
690
691 2010-04-13  Daigo Moriwaki <daigo at debian dot org>
692
693         * [shogi-server]
694           - shogi_server/command.rb:
695             Equality of MonitorHandler class was wrong. %%MONITOROFF and
696             %%MONITOR2OFF may cause unexpected behavior. This issue has been
697             fixed. Thanks to Kota Fujiwara for reporting.
698
699 2010-03-07  Daigo Moriwaki <daigo at debian dot org>
700
701         * [shogi-server]
702           - If two sequential moves from a player are identical, the last
703             one will be ignored and a game is in play. This situation might
704             happen with human players, especially on slow network,
705             impatiently sending a move twice. 
706
707 2010-02-27  Daigo Moriwaki <daigo at debian dot org>
708
709         * [shogi-server]
710           - The server now provides more accurate time control. Previously,
711             a player's thinking time included a time waiting to get the giant
712             lock. This may have caused games to time up, especially, during
713             byo-yomi etc.
714
715 2010-01-22  Daigo Moriwaki <daigo at debian dot org>
716
717         * [shogi-server]
718           - Experimental feature: support handicapped games.
719             Game names that have the following prefixes are recognized as
720             handicapped games. Turn symbols "+" and "-" mean Uwate (expert)
721             and Shitate (beginner) respectively (i.e. Uwate players first).
722             "*" is not available. 
723             - hclance_
724             - hcbishop_
725             - hcrook_
726             - hcrooklance_
727             - hc2p_
728             - hc4p_
729             - hc6p_
730             - hc10p_
731
732 2010-01-16  Daigo Moriwaki <daigo at debian dot org>
733
734         * [shogi-server]
735           - shogi_server/command.rb, test/TC_command.rb
736             Proposal implementation of a new command called MONITOR2{ON,OFF}.
737             When the MONITOR2ON command is issued by a player, the server
738             immediately sends the player the entire contents of a record
739             file of the game, i.e. history of moves and so on, at that time.
740             Then, the server will forward subsequent moves like they are
741             appended to the record file.
742           - Behavior changed: A player monitoring a game with MONITORON will
743             not receive Game#show again when a gaming player resigns (:toryo).
744
745 2010-01-10  Daigo Moriwaki <daigo at debian dot org>
746
747         * Converted the repository from Subversion to Git.
748
749 2009-12-26 Daigo Moriwaki <daigo at debian dot org> 
750
751         * [shogi-server]
752           - The server can now provide multiple floodgate modes such as
753             floodgate-900-0 and floodgate-3600-0.
754
755 2009-12-25 Daigo Moriwaki <daigo at debian dot org>
756
757         * [shogi-server]
758           - shogi-server: The command line option --floodgate-history has
759             been deprecated. The server will decide history file names such
760             as 'floodgate_history_900_0.yaml' and
761             'floodgate_history_3600_0.yaml', and then put them in the top
762             directory.
763
764 2009-12-20 Daigo Moriwaki <daigo at debian dot org>
765
766         * [shogi-server]
767           - shogi_server/player.rb: Added new methods: is_human? and
768             is_computer?. 
769             A human player is recommended to use a name ending with '_human'.  
770             ex. 'hoge_human', 'hoge_human@p1'
771           - shogi_server/pairing.rb: Added a new class:
772             StartGameWithoutHumans, which tries to make pairs trying to
773             avoid a human-human match. This is now enabled instead of the
774             previous class: StartGame.
775           - shogi-server, shogi_server/league/floodgate.rb:
776             Changed the argument of Floodgate.new.
777
778 2009-12-04 Daigo Moriwaki <daigo at debian dot org>
779
780         * [shogi-server]
781           - The HUP signal is not supported by Ruby on Windows.
782
783 2009-11-11 Daigo Moriwaki <daigo at debian dot org>
784
785         * [mk_rate]
786           - Added a new command line option: --base-date. You can specify a
787             base date to calculate rating scores. Games in the `future' are
788             ignored for the calculation.
789
790 2009-11-10 Daigo Moriwaki <daigo at debian dot org>
791
792         * [shogi-server]
793           - The server logs a result of each game to a file named '00LIST',
794             which will be used to generate players.yaml. If the file does
795             not exist, the server will create one automatically.
796             Instruction to use the game result list file:
797             1. Make a list of game results from existing CSA files with
798                mk_game_results
799                % ./mk_game_results dir_of_csa_files > 00LIST
800             2. Run the server. It appends a result of each game to
801                '00LIST' when the game finishes.
802             3. From the list of game results, calculate rating scores of
803                players.
804                % ./mk_rate 00LIST > players.yaml
805
806 2009-11-08 Daigo Moriwaki <daigo at debian dot org>
807
808         * [mk_rate]
809           - Split a pre-process collecting game results from csa files into
810             a new command, mk_game_results. Now, Generating players.yaml
811             requires two steps as follows:
812               % ./mk_game_results dir_of_csa_files > 00LIST
813               % ./mk_rate 00LIST > players.yaml
814               or
815               % ./mk_game_results dir_of_csa_files | ./mk_rate > players.yaml 
816             (Closes: #19454)
817
818 2009-08-06 Daigo Moriwaki <daigo at debian dot org>
819
820         * [shogi-server]
821           - A experimental new feature, codenamed Buoy: it allows players to
822             play a game starting with a specified position. First, a player
823             sets a buoy game with moves to a specific position. Then, two
824             players can play a new game with the game name.
825             New commands:
826             + %%SETBUOY <game_name> <moves> [count]
827               Set a new buoy game.
828               ex. %%SETBUOY buoy_foo-900-0 +7776FU 10
829               ex. %%SETBUOY buoy_foo-1500-0 +7776FU-3334FU
830               - game_name is a valid game name with a prefix "buoy_".
831               ex. buoy_foo-900-0
832               - moves are initial moves from the Hirate position to a
833               specific position that you want to start with.
834               ex. +7776FU-3334FU+8786FU
835               - count is an optional attribute to tell how many times the
836               game can be played (default 1). The count is decremented
837               when the game finishes. If the count reaches zero, the buoy
838               game is removed automatically by the server.
839               ex. 10
840             + %%DELETEBUOY <game_name>
841               Delete a buoy game. The only owner who set up the game is
842               allowed to delete it.
843               ex. %%DELETEBUOY buoy_foo-900-0
844               - game_name is the buoy game name that was created.
845             + %%GETBUOYCOUNT <game_name>
846               Show a current count of the buoy game or -1 for non-existing
847               games.
848
849
850 2009-07-11 Daigo Moriwaki <daigo at debian dot org>
851
852         * [shogi-server]
853           - shogi_server/command.rb: refactored commands out of player.rb.
854
855 2009-06-18 Daigo Moriwaki <daigo at debian dot org>
856
857         * [shogi-server]
858           - An empty floodgate_history.yaml caused a server error. This
859             issue has been fixed. 
860             (Closes: #15124)
861
862 2009-06-17 Daigo Moriwaki <daigo at debian dot org>
863
864         * [shogi-server]
865           - If a new game matched between two players is not started within
866             a certain time (default 120 seconds) (i.e. the agree_waiting or
867             start_waiting state lasts too long), the Server REJECTs the game.
868             (Closes: #14425)
869
870 2009-06-15 Daigo Moriwaki <daigo at debian dot org>
871
872         * [shogi-server]
873           - When a Gote player AGREEd a new game and then a Sente player
874             logged out (LOGOUT), the Gote incorrectly received a LOGOUT message 
875             from the server. Since Gote's state was not AGREEd or STARTed yet,
876             the Gote should be REJECTed. This issue has been fixed. 
877             (Closes: #17335)
878
879 2009-06-14 Daigo Moriwaki <daigo at debian dot org>
880
881         * [shogi-server]
882           - The Board could not recognize a certain pattern of
883             Oute-Sennichite. This issue has been fixed.
884             (Closes: #13966)
885
886 2009-03-22 Daigo Moriwaki <daigo at debian dot org>
887
888         * [utils/correct-bug14635.rb]
889           - Added a new file. This program corrects illegal lines introduced
890             by the #14635 bug.
891
892 2009-03-07 Daigo Moriwaki <daigo at debian dot org>
893
894         * [csa-file-filter]
895           - Improved performance.
896
897 2009-02-15 Daigo Moriwaki <daigo at debian dot org>
898
899         * [shogi-server]
900           - A duplicated comment that is the one of the previous (or older)
901             move might be erroneously recorded in a csa file. This issue has 
902             been fixed. (Closes: #15080)
903
904 2009-02-11 Daigo Moriwaki <daigo at debian dot org>
905
906         * [utils/csa-filter.rb]
907           - Added a new file. This program filters CSA files.
908
909 2009-02-01 Daigo Moriwaki <daigo at debian dot org>
910
911         * [shogi-server]
912           - The shogi-server records csa files of games in an illegal
913             format. This issue has been fixed. (Closes: #14635)
914           - A ##[MONITOR] command for showing a game result such as %TORYO
915             was not correct. This issue has been fixed.  
916
917 2009-01-13 Daigo Moriwaki <daigo at debian dot org>
918
919         * [shogi-server]
920           - It failed to proccess a game result, OuteKaihiMoreWin where a
921             checked king does not escape. This issue has been fixed.
922
923 2009-01-02 Daigo Moriwaki <daigo at debian dot org>
924
925         * [shogi-server]
926           - shogi_server/timeout_queue.rb: the timeout parameter of the
927             constructor was not respected erroneously. This issue
928             has been fixed.
929           - shogi_server/players.rb: When a player was finishing with its
930             write socket broken, there was a chance that the thread of the
931             player in the giant lock had to wait for a long time (about 20
932             seconds), which might cause threads of other players stop and 
933             time out. (Closes: #14469)
934
935 2008-12-30 Daigo Moriwaki <daigo at debian dot org>
936
937         * [mk_html]
938           - Added a new option: --footer filename, which inserts contents of 
939             the filename at the bottom of a generated page. A text specific to 
940             wdoor should be written by using this option. 
941             (Closes: #14470)
942           - It does no more depend on RDoc. RDoc::usage does not work well
943             (due to RDoc).
944
945 2008-12-28 Daigo Moriwaki <daigo at debian dot org>
946
947         * [mk_rate]
948           - Check kifu files more carefully so that files that contain
949             incomplete records are skipped.
950           - mk_rate might have failed to alloc due to out of memory. Now it
951             consumes less memory (about 200MB instead of 2GB).
952           - File names can be put into STDIN instead of specifying directory
953             names in command line arguments.
954         * [csa-file-filter]
955           - New file. It filters kifu files and is of use for a pre-filter
956             of mk_rate.
957
958 2008-12-13 Daigo Moriwaki <daigo at debian dot org>
959
960         * [shogi-server]
961           - Improved an existance check and etc. of directories specified
962             by command line options, especially in case of the daemon mode. 
963             (Closes: #14244)
964           - A rotated log file is moved to $topdir/YYYY/MM/DD.
965             (Closes: #14245)
966
967 2008-11-27 Daigo Moriwaki <daigo at debian dot org>
968
969         * [shogi-server]
970           - Added sample/*.sh for command line samples.
971
972 2008-11-24 Daigo Moriwaki <daigo at debian dot org>
973
974         * [shogi-server]
975           - Added a new option --floodgate-history, which allows users to
976             specify a file name that stores the records of games. The
977             records are taken care of when games are matched.
978
979 2008-10-18 Daigo Moriwaki <daigo at debian dot org>
980
981         * [utils/eval_graph.rb]
982           - Display time control graphs as well.
983             Thanks to Nishimura-san for this idea.
984             (Closes: #13678)
985
986 2008-10-08 Daigo Moriwaki <daigo at debian dot org>
987
988         * [shogi-server]
989           - Ruby 1.8.7 (or later) must be used. Ruby 1.8.6 is not supported.
990           - Daemon mode is available.
991           - shogi_server/piece_ky.rb is again merged with
992             shogi_server/piece.rb, then has been removed.  
993           - Added a test case, TC_usi.rb.
994
995 2008-06-30 Daigo Moriwaki <daigo at debian dot org>
996
997         * [shogi-server]
998           - Added a new option --player-log-dir, which allows users to log
999             messages that are received or sent to the wire.
1000
1001 2008-06-28 Daigo Moriwaki <daigo at debian dot org>
1002
1003         * [shogi-server]
1004           - A rating comment line is now written before the first move in a
1005             record file instead of after the last move, which allows other
1006             applications watching a game to recognize players in the middle 
1007             of the game. (Closes #12821)
1008           - If a player, including a monitor, stuck at the time of sending
1009             messages to the wire, which means that the giant lock was locked,
1010             it might have prevented other players from processing until
1011             timeout occurred. This issue has been fixed. (Closes #12555)
1012
1013 2008-06-27 Daigo Moriwaki <daigo at debian dot org>
1014
1015         * [shogi-server]
1016           -  Pairing players might not have shuffled players because of
1017              poor shuffling algorithm. This issue has been fixed.
1018              (Closes: #12661)
1019
1020 2008-06-25 Daigo Moriwaki <daigo at debian dot org>
1021
1022         * [players_graph.rb]
1023           - Check invalid arguments. (Closes: #12856)
1024
1025 2008-06-23 Daigo Moriwaki <daigo at debian dot org>
1026
1027         * [mk_rate]
1028           - Added a new option: --fixed-rate and --fixed-rate-player
1029             whose rate always results in that rate. (Closes: #12800)
1030
1031 2008-06-06 Daigo Moriwaki <daigo at debian dot org>
1032
1033         * [shogi-server]
1034           - The source has been splited to multiple sub files.
1035           - The program now depends on rubygems and activesupport.
1036           - The program can reload the source files on the flight, by
1037             sending a HUP signal to the server.
1038           - The server log will be rotated daily.
1039
1040 2008-05-18 Daigo Moriwaki <daigo at debian dot org>
1041
1042         * [shogi-server]
1043           - Last game results (win or lose) of x1 players were not
1044             available on the next game. This issue has been fixed.
1045             Thanks to Tomoyuki Kaneko for debugging.
1046           - For draw games, "'rating" line in a .csa file was 
1047             wrong (meaningless). This issue has been fixed.
1048
1049 2008-05-16 Daigo Moriwaki <daigo at debian dot org>
1050
1051         * [news]
1052           - The repository has been converted from CVS to Subversion.
1053
1054 2008-05-13 Daigo Moriwaki <daigo at debian dot org>
1055
1056         * [shogi-server]
1057           - Floodgate's thread could cause an error when players.yaml was
1058             cleared by another program (mk_rate). This issue has been 
1059             fixed.
1060           - Give default values to BasicPlayer, which fixed undefined 
1061             method error in Pairing.
1062
1063 2008-05-10 Daigo Moriwaki <daigo at debian dot org>
1064
1065         * [shogi-server]
1066           - The server could not recognize uchifuzume as an illegal move.
1067             This bug has been fixed.
1068           - The server crashed by an undefined method error.
1069             This issue has been fixed.
1070
1071 2008-05-05 Daigo Moriwaki <daigo at debian dot org>
1072
1073         * [shogi-server]
1074           - .csa files will be located in a sub directory such as
1075             "2008/05/05/*.csa". These days, we have many games in a day. 
1076             This change will help users browse a file list.
1077
1078 2008-05-03 Daigo Moriwaki <daigo at debian dot org>
1079
1080         * [mk_html]
1081           - Show players who have accessed in the last 30 minutes with 
1082             different colors.
1083
1084 2008-04-22 Daigo Moriwaki <daigo at debian dot org>
1085
1086         * [mk_html]
1087           - When YSS was not rated on the wdoor mode, wrong rate24 scores
1088             were displayed. This issue has been fixed. Now YSS absence 
1089             results in "N/A".
1090
1091 2008-04-21 Daigo Moriwaki <daigo at debian dot org>
1092
1093         * [mk_rate]
1094           - The half-life period is now configurable.
1095             ex $ ./mk_rate --half-life 14 --half-life-ignore 7 <records>
1096
1097 2008-04-12 Daigo Moriwaki <daigo at debian dot org>
1098
1099         * [shogi-server]
1100           - Renamed variables (@id) since they caused Ruby's warning.
1101
1102 2008-04-11 Daigo Moriwaki <daigo at debian dot org>
1103
1104         * [shogi-server]
1105           - Improved a way to handle diferred moves (2008-03-24's change),
1106             based on Tomoyuki Kaneko's patch.
1107
1108 2008-04-01 Daigo Moriwaki <daigo at debian dot org>
1109
1110         * [shogi-server]
1111           - An incorrect LOGIN crashed the server. This issue has been
1112             fixed.
1113
1114 2008-03-24 Daigo Moriwaki <daigo at debian dot org>
1115
1116         * [shogi-server]
1117           - Converting characters for comments in moves caused an error. This 
1118             issue has been fixed.
1119           - If a player moves in the opponent's turn, it is illegal. But the
1120             current CSA protocol does not clearly define a way to tell so to 
1121             the players. This shogi-server internally keeps such a move in a
1122             buffer and replay it when the player of the move gets his/her 
1123             turn.
1124
1125 2008-03-16 Daigo Moriwaki <daigo at debian dot org>
1126
1127         * [shogi-server]
1128           - Erroneously, Board#to_s's current player was always Black.
1129             It caused wrong determination of sennichite since it did not
1130             care about the current player of a state. This has been fixed.
1131             Thanks Takada-san for reporting this bug.
1132
1133 2008-03-10 Daigo Moriwaki <daigo at debian dot org>
1134
1135         * [util/players-graph.rb]
1136           - Applied Kaneko-san's patch, which also shows expected-rate24
1137             rates.
1138           - Small PNG gets smaller.
1139
1140 2008-03-08 Daigo Moriwaki <daigo at debian dot org>
1141
1142         * [mk_html]
1143         - Added an option --wdoor. In this mode, a rate expected at Shogi
1144           Club 24 is calculated from YSS's rating (he is 2400 now). 
1145
1146 2008-03-04 Daigo Moriwaki <daigo at debian dot org>
1147
1148         * [mk_rate]
1149           - If the computed ratings do not stabilize, then mk_rate aborts.
1150               $ ./mk_rate dir && ./mk_rate dir > players.yaml 
1151             can avoid rewriting the invalid ratings to the file.
1152
1153 2008-02-23 Daigo Moriwaki <daigo at debian dot org>
1154
1155         * [shogi-server]
1156           - A comment is converted to EUC-JP and then written in a log.
1157             Note that this conversion guesses the input encoding. Clients
1158             are recommended to send EUC-JP compatible strings to the
1159             server.
1160
1161 2008-02-21 Daigo Moriwaki <daigo at debian dot org>
1162
1163         * [util/players-graph.rb]
1164           - Released. Draw a chart for a player's rating score.
1165
1166 2008-02-17 Daigo Moriwaki <daigo at debian dot org>
1167
1168         * [shogi-server]
1169           - An illegal teban specified for Floodgate login could crash the
1170             server. This issue has been fixed.
1171
1172 2008-02-16 Daigo Moriwaki <daigo at debian dot org>
1173
1174         * [shogi-server]
1175           - Thread.abort_on_exception is now false, meaning that 
1176             a thread's abort does not affect the others. 
1177           - The uchifuzume check did not generate promoting moves, which
1178             could crash the server with illegal moves. This issue has
1179             been fixed.
1180
1181 2008-02-14 Daigo Moriwaki <daigo at debian dot org>
1182
1183         * [shogi-server]
1184           - Added a new pairing variation, Swiss-like style. Winners at the
1185             previous games (his/her point of view, not the server's) are 
1186             paired first, and then the others are matched. This is the 
1187             default option now.
1188           - Pairing classes are located in a separate source file,
1189             pairing.rb. The file is 'load'ed each time to be used,
1190             meaning that modifying the code will be applied to a running
1191             server.
1192           - You can specify a single player who will be out of pairing
1193             when there are odd players waiting for Floodgate.
1194
1195 2008-02-13 Daigo Moriwaki <daigo at debian dot org>
1196
1197         * [shogi-server]
1198           - When there are odd players wating for Floodgate, the random
1199             pairing deletes the player who has ever played the most games.
1200
1201 2008-02-08 Daigo Moriwaki <daigo at debian dot org>
1202
1203         * [ml_html]
1204           - For the Not-Yet-Rated group, those who have not connected
1205             recently are not listed.
1206         * [shogi-server]
1207           - Floodgate's thread checks the current time each 10 secs.
1208
1209 2008-02-05 Daigo Moriwaki <daigo at debian dot org>
1210
1211         * [mk_rate] [mk_html]
1212           - Display not-yet-rated players as well.
1213         * [mk_html]
1214           - Use Yahoo! UI Library.
1215
1216 2008-02-04 Daigo Moriwaki <daigo at debian dot org>
1217
1218         * [shogi-server] [webserver]
1219           - In the daemon mode, if the specified directory was a relative
1220             path, the server could fail to start with a permission denied
1221             error. This issue has been fixed. The path is interpreted as 
1222             an absolute path before switching to daemon. 
1223           - In the daemon mode, a wrong process id was written in 
1224             '--pid-file'. This issue has been fixed. Also, the pid file
1225             will be removed when the server shuts down.
1226
1227 2008-02-03 Daigo Moriwaki <daigo at debian dot org>
1228
1229         * [shogi-server]
1230           - Game names that are recognized as the floodgate mode are now 
1231             /^floodgate-\d+-\d+$/.
1232           - Floodgate could not schedule the next time when it was the next
1233             day. This issue has been fixed.
1234
1235 2008-02-02 Daigo Moriwaki <daigo at debian dot org>
1236
1237         * [shogi-server]
1238           - Implemented a new feature, Floodgate mode, for covenience with
1239             public rating games. Now there is a special game "wdoor-900-0".
1240             Matching players for that game is scheduled each 30 minitues.
1241
1242 2007-11-03 Daigo Moriwaki <daigo at debian dot org>
1243
1244         * [mk_rate]
1245          - Support Ruby 1.8.6 patch level 111 (or higher) and GSL 1.10 (or higher).
1246            It may not work with lower verions. 
1247
1248 2007-09-06 Daigo Moriwaki <daigo at debian dot org>
1249
1250         * [shogi-server]
1251           - The logic to detect Oute-Sennichite was not complete. Both players
1252             (checking side and escaping side) may cause Oute-Sennichite. The old
1253             logic only cared for the checking player. This issue has been fixed.
1254
1255 2007-06-16  Daigo Moriwaki <daigo at debian dot org>
1256
1257         * [webserver]
1258           - Initial version. This web server is an interface between HTTP and
1259             shogi-server. Shogi-server commands will be available over HTTP. As
1260             of now %%LIST and %%WHO commands are supported.
1261         * [mk_rate]
1262           - Bumped up GAME_LIMIT (from 10) to 15 because the calculation of
1263             rates sometimes went wrong (infinite values).
1264
1265 2007-04-21  Daigo Moriwaki <daigo at debian dot org>
1266
1267         * [shogi-server]
1268           - Implemented `CHALLENGE' command, and the server will respond with
1269             `CHALLENGE ACCEPTED'. Note that this command is dummy for this server
1270             because it is only available for CSA's official testing server and does
1271             not belong to the CSA standard protocol.  Therefor, when clients receive
1272             `CHALLENGE ACCEPTED' from this server, they must ignore it.
1273           - Show revision in a start up message.
1274
1275 2007-04-01  Daigo Moriwaki <daigo at debian dot org>
1276
1277         * [shogi-server]
1278           - Implemented one of the keepalive protocol in CSA protocol; If clients
1279             send LF, the server sends back LF.
1280           - More care for socket errors.
1281
1282 2007-03-27  Daigo Moriwaki <daigo at debian dot org>
1283
1284         * [mk_rate] When there were too few games to rate players (i.e. no
1285           player to rate), mk_rate caused an error. Now it no longer shows
1286           the error.
1287
1288 2007-03-10  Daigo Moriwaki <daigo at debian dot org>
1289
1290         * [mk_html] Popup shows additional information.
1291
1292 2007-03-02  Daigo Moriwaki <daigo at debian dot org>
1293
1294         * [shogi-server]
1295           - Use WEBrick for server framework.
1296           - Daemon mode is available.
1297
1298 2007-02-26  Daigo Moriwaki <daigo at debian dot org>
1299
1300         * [shogi-server]
1301           - Failed to show usage. This issue has been fixed. 
1302           - Initial start of the server failed beacause of empty players.yaml.
1303             This issues has been fixed.
1304
1305 2007-02-18  Daigo Moriwaki <daigo at debian dot org>
1306
1307         * [mk_html]
1308           - Show groups in the order specified in players.html.
1309           - Players who gamed recently have a background color.
1310         * [mk_rate]
1311           - Implemented half-life effect. Numbers of win/lose decrease by this effect.
1312
1313 2006-11-26  Daigo Moriwaki <daigo at debian dot org>
1314
1315         * [shogi-server] Sente (gote) was able to move gote's (sente's) hand.
1316           That move should be illegal. This issue has been fixed.
1317
1318 2006-11-01  Daigo Moriwaki <daigo at debian dot org>
1319
1320         * [mk_rate] Skip "abnormal" games, which were finished because of
1321           network failure or communication error.  Recently some programs seem
1322           to have a lot of tries to connect to the Shogi Server at wdoor for
1323           debugging. We should ignore such games for a while to get a meaningful
1324           ratings.
1325
1326 2006-10-30  Daigo Moriwaki <daigo at debian dot org>
1327
1328         * [mk_rate][mk_html]
1329           - Put players into "connected" groups in order to
1330             show a correct, meaningful rating. In the group, each player has at
1331             least a game with other players.
1332           - The format of players.yaml was updated.
1333         * [shogi-server] Followed the new format of players.yaml.
1334
1335 2006-10-08  Daigo Moriwaki <daigo at debian dot org>
1336
1337         * [mk_rate] Corrected making win_loss_matrix.
1338
1339 2006-10-02  Daigo Moriwaki <daigo at debian dot org>
1340
1341         * [mk_rate] players who never win or lose are not rated in order
1342           the calculation to complete.
1343
1344 2006-09-30  Daigo Moriwaki <daigo at debian dot org>
1345
1346         * [shogi-server] The CSA mode supports the trip in a password.
1347
1348 2006-09-22  Daigo Moriwaki <daigo at debian dot org>
1349
1350         * [shogi-server] Refactored the login procedures.
1351
1352 2006-09-21  Daigo Moriwaki <daigo at debian dot org>
1353
1354         * [mk_rate] It failed parse draw games. Now this bug has been fixed.
1355         * [mk_html] Add CSS to look better.
1356
1357 2006-09-15  Daigo Moriwaki <daigo at debian dot org>
1358
1359         * [shogi-server]
1360           - Remove the trip in a password. Now the password is hashed.
1361         * [mk_rate]
1362           - Support @NORATE syntax in a name, which avoids the player is
1363             rated.
1364
1365 2006-09-09  Daigo Moriwaki <daigo at debian dot org>
1366
1367         * [shogi-server]
1368           - Support a new command, %%VERSION. It shows the server's revision#.
1369
1370 2006-09-07  Daigo Moriwaki <daigo at debian dot org>
1371
1372         * [shogi-server]
1373           - Re-design: trip is now a suffix of the password, not name.
1374           - Simplified the output of %%RATING.
1375         * [mk_rate]
1376           - Support "@" indentificaton in a name; players with same
1377             before-@-names are mapped to one.
1378
1379 2006-09-05  Daigo Moriwaki <daigo at debian dot org>
1380
1381         * [mk_rate] Fix a bug. It solves the correct rate.
1382
1383 2006-08-18  Daigo Moriwaki <daigo at debian dot org>
1384
1385         * [mk_rate] Re-design. 
1386           - Correct the equations.
1387           - Apply deaccelerated Newton method.
1388
1389 2006-08-16  Daigo Moriwaki <daigo at debian dot org>
1390
1391         * [mk_rate]
1392           - Fix a bug. Now it can see black/white players in a csa file.
1393         * [shogi-server]
1394           - Add a space in the output of %%RATING.
1395
1396 2006-08-14  Daigo Moriwaki <daigo at debian dot org>
1397
1398         * [mk_rate] Record numbers of win/loss games.
1399         * Add mk_html, which generates html from players.yaml
1400         * Fix test/test_board.rb. Now it works. 
1401         * Add test/TC_ALL.rb to run all test cases.
1402         * [shogi-server] Fix a bug. Now it can show %%RATING even if it has no
1403           rated player.
1404
1405 2006-08-11  Daigo Moriwaki <daigo at debian dot org>
1406         
1407         * Add mk_rate, which calculate rating scores.
1408
1409 2006-08-10  Daigo Moriwaki <daigo at debian dot org>
1410
1411         * Change the style of a comment line on the rated game.
1412
1413 2006-08-07  Daigo Moriwaki <daigo at debian dot org>
1414
1415         * Change the player id, which is now <name>+<hash_of_the_trip>.
1416         * Fix the max length of the login name with a trip.
1417         * Add a comment line about the rated game status in the CSA file.
1418         * Remove the rating system, which will be calculated by another
1419           program.
1420
1421 2006-08-01  Daigo Moriwaki <daigo at debian dot org>
1422
1423         * Add a command, %%RATING, to show a ranking sorted by rates.
1424
1425 2006-07-31  Daigo Moriwaki <daigo at debian dot org>
1426
1427         * Add a simple rating system.
1428
1429 2006-07-30  Daigo Moriwaki <daigo at debian dot org>
1430
1431         * Add a @move_counter in Board class, which is used by Shogi Viewer
1432           CGI.
1433
1434 2006-04-28  Daigo Moriwaki <daigo at debian dot org>
1435
1436         * Jishogi kachi declaration did not work. This bug has been fixed.
1437           Add debug lines to show a jishogi state.
1438
1439 2006-04-08  Daigo Moriwaki <daigo at debian dot org>
1440
1441         * Support CSA Protocol Version 1.1.
1442         * Change the declaration of Jishogi 1.1.
1443
1444 2006-03-10  Daigo Moriwaki <daigo at debian dot org>
1445
1446         * Kifu logs are always written in separate files.
1447         * Add a test case, test/TC_functional.rb
1448         * Some refactorings.
1449