1 2009-12-20 Daigo Moriwaki <daigo at debian dot org>
4 - shogi_server/player.rb: Added new methods: is_human? and
6 A human player is recommened to use a name ending with '_human'.
7 ex. 'hoge_human', 'hoge_human@p1'
8 - shogi_server/pairing.rb: Added a new class:
9 StartGameWithoutHumans, which tries to make pairs trying to
10 avoid a human-human match. This is now enabled instread of the
11 previous class: StartGame.
13 2009-12-04 Daigo Moriwaki <daigo at debian dot org>
16 - The HUP signal is not supported by Ruby on Windows.
18 2009-11-11 Daigo Moriwaki <daigo at debian dot org>
21 - Added a new command line option: --base-date. You can specify a
22 base date to calculate rating scores. Games in the `future' are
23 ignored for the calculation.
25 2009-11-10 Daigo Moriwaki <daigo at debian dot org>
28 - The server logs a result of each game to a file named '00LIST',
29 which will be used to generate players.yaml. If the file does
30 not exist, the server will create one automatically.
31 Instruction to use the game result list file:
32 1. Make a list of game results from exisiting CSA files with
34 % ./mk_game_results dir_of_csa_files > 00LIST
35 2. Run the server. It appends a result of each game to
36 '00LIST' when the game finishes.
37 3. From the list of game results, calculate rating scores of
39 % ./mk_rate 00LIST > players.yaml
41 2009-11-08 Daigo Moriwaki <daigo at debian dot org>
44 - Split a pre-process collecting game results from csa files into
45 a new command, mk_game_results. Now, Generating players.yaml
46 requires two steps as follows:
47 % ./mk_game_results dir_of_csa_files > 00LIST
48 % ./mk_rate 00LIST > players.yaml
50 % ./mk_game_results dir_of_csa_files | ./mk_rate > players.yaml
53 2009-08-06 Daigo Moriwaki <daigo at debian dot org>
56 - A experimental new feature, codenamed Buoy: it allows players to
57 play a game starting with a specified position. First, a player
58 sets a buoy game with moves to a specific position. Then, two
59 players can play a new game with the game name.
61 + %%SETBUOY <game_name> <moves> [count]
63 ex. %%SETBUOYGAME buoy_foo-900-0 +7776FU 10
64 ex. %%SETBUOYGAME buoy_foo-1500-0 +7776FU-3334FU
65 - game_name is a valid game name with a prefix "buoy_".
67 - moves are initial moves from the Hirate position to a
68 spcific position that you want to start with.
69 ex. +7776FU-3334FU+8786FU
70 - count is an optional attribute to tell how many times the
71 game can be played (default 1). The count is decremented
72 when the game finishes. If the count reaches zero, the buoy
73 game is removed automatically by the server.
75 + %%DELETEBUOY <game_name>
76 Delete a buoy game. The only owner who set up the game is
78 ex. %%DELETEBUOY buoy_foo-900-0
79 - game_name is the buoy game name that was created.
80 + %%GETBUOYCOUNT <game_name>
81 Show a current count of the buoy game or -1 for non-existing
85 2009-07-11 Daigo Moriwaki <daigo at debian dot org>
88 - shogi_server/command.rb: refactored commands out of player.rb.
90 2009-06-18 Daigo Moriwaki <daigo at debian dot org>
93 - An emtpy floodgate_history.yaml caused a server error. This
97 2009-06-17 Daigo Moriwaki <daigo at debian dot org>
100 - If a new game matched between two players is not started within
101 a certain time (default 120 seconds) (i.e. the agree_waiting or
102 start_waiting state lasts too long), the Server REJECTs the game.
105 2009-06-15 Daigo Moriwaki <daigo at debian dot org>
108 - When a Gote player AGREEd a new game and then a Sente player
109 logged out (LOGOUT), the Gote incorrectly received a LOGOUT message
110 from the server. Since Gote's state was not AGREEd or STARTed yet,
111 the Gote should be REJECTed. This issue has been fixed.
114 2009-06-14 Daigo Moriwaki <daigo at debian dot org>
117 - The Board could not recognize a certain pattern of
118 Oute-Sennichite. This issue has been fixed.
121 2009-03-22 Daigo Moriwaki <daigo at debian dot org>
123 * [utils/correct-bug14635.rb]
124 - Added a new file. This program corrects illegal lines introduced
127 2009-03-07 Daigo Moriwaki <daigo at debian dot org>
130 - Improved performance.
132 2009-02-15 Daigo Moriwaki <daigo at debian dot org>
135 - A duplicated comment that is the one of the previous (or older)
136 move might be erroneously recorded in a csa file. This issue has
137 been fixed. (Closes: #15080)
139 2009-02-11 Daigo Moriwaki <daigo at debian dot org>
141 * [utils/csa-filter.rb]
142 - Added a new file. This program filters CSA files.
144 2009-02-01 Daigo Moriwaki <daigo at debian dot org>
147 - The shogi-server records csa files of games in an illegal
148 format. This issue has been fixed. (Closes: #14635)
149 - A ##[MONITOR] command for showing a game result such as %TORYO
150 was not correct. This issue has been fixed.
152 2009-01-13 Daigo Moriwaki <daigo at debian dot org>
155 - It failed to proccess a game result, OuteKaihiMoreWin where a
156 checked king does not escape. This issue has been fixed.
158 2009-01-02 Daigo Moriwaki <daigo at debian dot org>
161 - shogi_server/timeout_queue.rb: the timeout parameter of the
162 constructor was not respected erroneously. This issue
164 - shogi_server/players.rb: When a player was finishing with its
165 write socket broken, there was a chance that the thread of the
166 player in the giant lock had to wait for a long time (about 20
167 seconds), which might cause threads of other players stop and
168 time out. (Closes: #14469)
170 2008-12-30 Daigo Moriwaki <daigo at debian dot org>
173 - Added a new option: --footer filename, which inserts contents of
174 the filename at the bottom of a genrated page. A text specific to
175 wdoor should be written by using this option.
177 - It does no more depend on RDoc. RDoc::usage does not work well
180 2008-12-28 Daigo Moriwaki <daigo at debian dot org>
183 - Check kifu files more carefully so that files that contain
184 incomplete records are skipped.
185 - mk_rate might have failed to alloc due to out of memory. Now it
186 consumes less memory (about 200MB instead of 2GB).
187 - File names can be put into STDIN instead of specifying directory
188 names in command line arguments.
190 - New file. It filters kifu files and is of use for a pre-filter
193 2008-12-13 Daigo Moriwaki <daigo at debian dot org>
196 - Improved an existance check and etc. of directories specified
197 by command line options, expecially in case of the daemon mode.
199 - A lotated log file is moved to $topdir/YYYY/MM/DD.
202 2008-11-27 Daigo Moriwaki <daigo at debian dot org>
205 - Added sample/*.sh for command line samples.
207 2008-11-24 Daigo Moriwaki <daigo at debian dot org>
210 - Added a new option --floodgate-history, which allows users to
211 specify a file name that stores the records of games. The
212 records are taken care of when games are matched.
214 2008-10-18 Daigo Moriwaki <daigo at debian dot org>
216 * [utils/eval_graph.rb]
217 - Display time control graphs as well.
218 Thanks to Nishimura-san for this idea.
221 2008-10-08 Daigo Moriwaki <daigo at debian dot org>
224 - Ruby 1.8.7 (or later) must be used. Ruby 1.8.6 is not supported.
225 - Daemon mode is available.
226 - shogi_server/piece_ky.rb is again merged with
227 shogi_server/piece.rb, then has been removed.
228 - Added a test case, TC_usi.rb.
230 2008-06-30 Daigo Moriwaki <daigo at debian dot org>
233 - Added a new option --player-log-dir, which allows users to log
234 messages that are received or sent to the wire.
236 2008-06-28 Daigo Moriwaki <daigo at debian dot org>
239 - A rating comment line is now written before the first move in a
240 record file instead of after the last move, which allows other
241 applications watching a game to recognize players in the middle
242 of the game. (Closes #12821)
243 - If a player, including a monitor, stuck at the time of sending
244 messages to the wire, which means that the giant lock was locked,
245 it might have prevented other players from processing until
246 timeout occurred. This issue has been fixed. (Closes #12555)
248 2008-06-27 Daigo Moriwaki <daigo at debian dot org>
251 - Pairing players might not have shuffled players because of
252 poor shuffling algorithm. This issue has been fixed.
255 2008-06-25 Daigo Moriwaki <daigo at debian dot org>
258 - Check invalid arguments. (Closes: #12856)
260 2008-06-23 Daigo Moriwaki <daigo at debian dot org>
263 - Added a new option: --fixed-rate and --fixed-rate-player
264 whose rate always results in that rate. (Closes: #12800)
266 2008-06-06 Daigo Moriwaki <daigo at debian dot org>
269 - The source has been splited to multiple sub files.
270 - The program now depends on rubygems and activesupport.
271 - The program can reload the source files on the flight, by
272 sending a HUP signal to the server.
273 - The server log will be rotated daily.
275 2008-05-18 Daigo Moriwaki <daigo at debian dot org>
278 - Last game results (win or lose) of x1 players were not
279 available on the next game. This issue has been fixed.
280 Thanks to Tomoyuki Kaneko for debugging.
281 - For draw games, "'rating" line in a .csa file was
282 wrong (meaningless). This issue has been fixed.
284 2008-05-16 Daigo Moriwaki <daigo at debian dot org>
287 - The repository has been converted from CVS to Subversion.
289 2008-05-13 Daigo Moriwaki <daigo at debian dot org>
292 - Floodgate's thread could cause an error when players.yaml was
293 cleared by another program (mk_rate). This issue has been
295 - Give default values to BasicPlayer, which fixed undefined
296 method error in Pairing.
298 2008-05-10 Daigo Moriwaki <daigo at debian dot org>
301 - The server could not recognize uchifuzume as an illegal move.
302 This bug has been fixed.
303 - The server crashed by an undefined method error.
304 This issue has been fixed.
306 2008-05-05 Daigo Moriwaki <daigo at debian dot org>
309 - .csa files will be located in a sub directory such as
310 "2008/05/05/*.csa". Thease days, we have many games in a day.
311 This change will help users browse a file list.
313 2008-05-03 Daigo Moriwaki <daigo at debian dot org>
316 - Show players who have accessed in the last 30 minutes with
319 2008-04-22 Daigo Moriwaki <daigo at debian dot org>
322 - When YSS was not rated on the wdoor mode, wrong rate24 scores
323 were displayed. This issue has been fixed. Now YSS absence
326 2008-04-21 Daigo Moriwaki <daigo at debian dot org>
329 - The half-life period is now configurable.
330 ex $ ./mk_rate --half-life 14 --half-life-ignore 7 <records>
332 2008-04-12 Daigo Moriwaki <daigo at debian dot org>
335 - Renamed variables (@id) since they caused Ruby's warning.
337 2008-04-11 Daigo Moriwaki <daigo at debian dot org>
340 - Improved a way to handle diferred moves (2008-03-24's change),
341 based on Tomoyuki Kaneko's patch.
343 2008-04-01 Daigo Moriwaki <daigo at debian dot org>
346 - An incorrect LOGIN crashed the server. This issue has been
349 2008-03-24 Daigo Moriwaki <daigo at debian dot org>
352 - Converting characters for comments in moves caused an error. This
353 issue has been fixed.
354 - If a player moves in the opponent's turn, it is illegal. But the
355 current CSA protocol does not clearly define a way to tell so to
356 the players. This shogi-server internally keeps such a move in a
357 buffer and replay it when the player of the move gets his/her
360 2008-03-16 Daigo Moriwaki <daigo at debian dot org>
363 - Erroneously, Board#to_s's current player was always Black.
364 It caused wrong determination of sennichite since it did not
365 care about the current player of a state. This has been fixed.
366 Thanks Takada-san for reporting this bug.
368 2008-03-10 Daigo Moriwaki <daigo at debian dot org>
370 * [util/players-graph.rb]
371 - Applied Kaneko-san's patch, which also shows expected-rate24
373 - Small PNG gets smaller.
375 2008-03-08 Daigo Moriwaki <daigo at debian dot org>
378 - Added an option --wdoor. In this mode, a rate expected at Shogi
379 Club 24 is calculated from YSS's rating (he is 2400 now).
381 2008-03-04 Daigo Moriwaki <daigo at debian dot org>
384 - If the computed ratings do not stabilize, then mk_rate aborts.
385 $ ./mk_rate dir && ./mk_rate dir > players.yaml
386 can avoid rewriting the invalid ratings to the file.
388 2008-02-23 Daigo Moriwaki <daigo at debian dot org>
391 - A comment is converted to EUC-JP and then written in a log.
392 Note that this conversion guesses the input encoding. Clients
393 are recommended to send EUC-JP compatible strings to the
396 2008-02-21 Daigo Moriwaki <daigo at debian dot org>
398 * [util/players-graph.rb]
399 - Released. Draw a chart for a player's rating score.
401 2008-02-17 Daigo Moriwaki <daigo at debian dot org>
404 - An illegal teban specified for Floodgate login could crash the
405 server. This issue has been fixed.
407 2008-02-16 Daigo Moriwaki <daigo at debian dot org>
410 - Thread.abort_on_exception is now false, meaning that
411 a thread's abort does not affect the others.
412 - The uchifuzume check did not generate promoting moves, which
413 could crash the server with illegal moves. This issue has
416 2008-02-14 Daigo Moriwaki <daigo at debian dot org>
419 - Added a new pairing variation, Swiss-like style. Winners at the
420 previous games (his/her point of view, not the server's) are
421 paired first, and then the others are matched. This is the
423 - Pairing classes are located in a separate source file,
424 pairing.rb. The file is 'load'ed each time to be used,
425 meaning that modifying the code will be applied to a running
427 - You can specify a single player who will be out of pairing
428 when there are odd players waiting for Floodgate.
430 2008-02-13 Daigo Moriwaki <daigo at debian dot org>
433 - When there are odd players wating for Floodgate, the random
434 pairing deletes the player who has ever played the most games.
436 2008-02-08 Daigo Moriwaki <daigo at debian dot org>
439 - For the Not-Yet-Rated group, those who have not connected
440 recently are not listed.
442 - Floodgate's thread checks the current time each 10 secs.
444 2008-02-05 Daigo Moriwaki <daigo at debian dot org>
446 * [mk_rate] [mk_html]
447 - Display not-yet-rated players as well.
449 - Use Yahoo! UI Library.
451 2008-02-04 Daigo Moriwaki <daigo at debian dot org>
453 * [shogi-server] [webserver]
454 - In the daemon mode, if the specified directory was a relative
455 path, the server could fail to start with a permission denied
456 error. This issue has been fixed. The path is interpreted as
457 an absolute path before switching to daemon.
458 - In the daemon mode, a wrong process id was written in
459 '--pid-file'. This issue has been fixed. Also, the pid file
460 will be removed when the server shuts down.
462 2008-02-03 Daigo Moriwaki <daigo at debian dot org>
465 - Game names that are recognized as the floodgate mode are now
466 /^floodgate-\d+-\d+$/.
467 - Floodgate could not schedule the next time when it was the next
468 day. This issue has been fixed.
470 2008-02-02 Daigo Moriwaki <daigo at debian dot org>
473 - Implemented a new feature, Floodgate mode, for covenience with
474 public rating games. Now there is a special game "wdoor-900-0".
475 Matching players for that game is scheduled each 30 minitues.
477 2007-11-03 Daigo Moriwaki <daigo at debian dot org>
480 - Support Ruby 1.8.6 patch level 111 (or higher) and GSL 1.10 (or higher).
481 It may not work with lower verions.
483 2007-09-06 Daigo Moriwaki <daigo at debian dot org>
486 - The logic to detect Oute-Sennichite was not complete. Both players
487 (checking side and escaping side) may cause Oute-Sennichite. The old
488 logic only cared for the checking player. This issue has been fixed.
490 2007-06-16 Daigo Moriwaki <daigo at debian dot org>
493 - Initial version. This web server is an interface between HTTP and
494 shogi-server. Shogi-server commands will be available over HTTP. As
495 of now %%LIST and %%WHO commands are supported.
497 - Bumped up GAME_LIMIT (from 10) to 15 because the calculation of
498 rates sometimes went wrong (infinite values).
500 2007-04-21 Daigo Moriwaki <daigo at debian dot org>
503 - Implemented `CHALLENGE' command, and the server will respond with
504 `CHALLENGE ACCEPTED'. Note that this command is dummy for this server
505 because it is only available for CSA's official testing server and does
506 not belong to the CSA standard protocol. Therefor, when clients receive
507 `CHALLENGE ACCEPTED' from this server, they must ignore it.
508 - Show revision in a start up message.
510 2007-04-01 Daigo Moriwaki <daigo at debian dot org>
513 - Implemented one of the keepalive protocol in CSA protocol; If clients
514 send LF, the server sends back LF.
515 - More care for socket errors.
517 2007-03-27 Daigo Moriwaki <daigo at debian dot org>
519 * [mk_rate] When there were too few games to rate players (i.e. no
520 player to rate), mk_rate caused an error. Now it no longer shows
523 2007-03-10 Daigo Moriwaki <daigo at debian dot org>
525 * [mk_html] Popup shows additional information.
527 2007-03-02 Daigo Moriwaki <daigo at debian dot org>
530 - Use WEBrick for server framework.
531 - Daemon mode is available.
533 2007-02-26 Daigo Moriwaki <daigo at debian dot org>
536 - Failed to show usage. This issue has been fixed.
537 - Initial start of the server failed beacause of empty players.yaml.
538 This issues has been fixed.
540 2007-02-18 Daigo Moriwaki <daigo at debian dot org>
543 - Show groups in the order specified in players.html.
544 - Players who gamed recently have a background color.
546 - Implemented half-life effect. Numbers of win/lose decrease by this effect.
548 2006-11-26 Daigo Moriwaki <daigo at debian dot org>
550 * [shogi-server] Sente (gote) was able to move gote's (sente's) hand.
551 That move should be illegal. This issue has been fixed.
553 2006-11-01 Daigo Moriwaki <daigo at debian dot org>
555 * [mk_rate] Skip "abnormal" games, which were finished because of
556 network failure or communication error. Recently some programs seem
557 to have a lot of tries to connect to the Shogi Server at wdoor for
558 debugging. We should ignore such games for a while to get a meaningful
561 2006-10-30 Daigo Moriwaki <daigo at debian dot org>
564 - Put players into "connected" groups in order to
565 show a correct, meaningful rating. In the group, each player has at
566 least a game with other players.
567 - The format of players.yaml was updated.
568 * [shogi-server] Followed the new format of players.yaml.
570 2006-10-08 Daigo Moriwaki <daigo at debian dot org>
572 * [mk_rate] Corrected making win_loss_matrix.
574 2006-10-02 Daigo Moriwaki <daigo at debian dot org>
576 * [mk_rate] players who never win or lose are not rated in order
577 the calculation to complete.
579 2006-09-30 Daigo Moriwaki <daigo at debian dot org>
581 * [shogi-server] The CSA mode supports the trip in a password.
583 2006-09-22 Daigo Moriwaki <daigo at debian dot org>
585 * [shogi-server] Refactored the login procedures.
587 2006-09-21 Daigo Moriwaki <daigo at debian dot org>
589 * [mk_rate] It failed parse draw games. Now this bug has been fixed.
590 * [mk_html] Add CSS to look better.
592 2006-09-15 Daigo Moriwaki <daigo at debian dot org>
595 - Remove the trip in a password. Now the password is hashed.
597 - Support @NORATE syntax in a name, which avoids the player is
600 2006-09-09 Daigo Moriwaki <daigo at debian dot org>
603 - Support a new command, %%VERSION. It shows the server's revision#.
605 2006-09-07 Daigo Moriwaki <daigo at debian dot org>
608 - Re-design: trip is now a suffix of the password, not name.
609 - Simplified the output of %%RATING.
611 - Support "@" indentificaton in a name; players with same
612 before-@-names are mapped to one.
614 2006-09-05 Daigo Moriwaki <daigo at debian dot org>
616 * [mk_rate] Fix a bug. It solves the correct rate.
618 2006-08-18 Daigo Moriwaki <daigo at debian dot org>
620 * [mk_rate] Re-design.
621 - Correct the equations.
622 - Apply deaccelerated Newton method.
624 2006-08-16 Daigo Moriwaki <daigo at debian dot org>
627 - Fix a bug. Now it can see black/white players in a csa file.
629 - Add a space in the output of %%RATING.
631 2006-08-14 Daigo Moriwaki <daigo at debian dot org>
633 * [mk_rate] Record numbers of win/loss games.
634 * Add mk_html, which generates html from players.yaml
635 * Fix test/test_board.rb. Now it works.
636 * Add test/TC_ALL.rb to run all test cases.
637 * [shogi-server] Fix a bug. Now it can show %%RATING even if it has no
640 2006-08-11 Daigo Moriwaki <daigo at debian dot org>
642 * Add mk_rate, which calculate rating scores.
644 2006-08-10 Daigo Moriwaki <daigo at debian dot org>
646 * Change the style of a comment line on the rated game.
648 2006-08-07 Daigo Moriwaki <daigo at debian dot org>
650 * Change the player id, which is now <name>+<hash_of_the_trip>.
651 * Fix the max length of the login name with a trip.
652 * Add a comment line about the rated game status in the CSA file.
653 * Remove the rating system, which will be calculated by another
656 2006-08-01 Daigo Moriwaki <daigo at debian dot org>
658 * Add a command, %%RATING, to show a ranking sorted by rates.
660 2006-07-31 Daigo Moriwaki <daigo at debian dot org>
662 * Add a simple rating system.
664 2006-07-30 Daigo Moriwaki <daigo at debian dot org>
666 * Add a @move_counter in Board class, which is used by Shogi Viewer
669 2006-04-28 Daigo Moriwaki <daigo at debian dot org>
671 * Jishogi kachi declaration did not work. This bug has been fixed.
672 Add debug lines to show a jishogi state.
674 2006-04-08 Daigo Moriwaki <daigo at debian dot org>
676 * Support CSA Protocol Version 1.1.
677 * Change the declaration of Jishogi 1.1.
679 2006-03-10 Daigo Moriwaki <daigo at debian dot org>
681 * Kifu logs are always written in separate files.
682 * Add a test case, test/TC_functional.rb