OSDN Git Service

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