OSDN Git Service

shogi-server/shogi-server.git
10 years agoCorrected typo
beatles [Sun, 15 Nov 2009 13:24:44 +0000 (13:24 +0000)]
Corrected typo

10 years agoIn a case of the Errno::ECONNRESET error, the error is correctly logged to the server...
beatles [Sun, 15 Nov 2009 13:24:43 +0000 (13:24 +0000)]
In a case of the Errno::ECONNRESET error, the error is correctly logged to the server log file.

10 years agoSplit GameResult related classes to shogi_server/game_result.rb
beatles [Sun, 15 Nov 2009 13:24:42 +0000 (13:24 +0000)]
Split GameResult related classes to shogi_server/game_result.rb

10 years agoOne more correction.
beatles [Sun, 8 Nov 2009 14:38:12 +0000 (14:38 +0000)]
One more correction.

10 years agoCorrected.
beatles [Sun, 8 Nov 2009 14:36:33 +0000 (14:36 +0000)]
Corrected.

10 years ago* [mk_rate]
beatles [Sun, 8 Nov 2009 13:48:48 +0000 (13:48 +0000)]
* [mk_rate]
  - Split a pre-process collecting game results from csa files into
    a new command, mk_game_results. Now, Generating players.html
    requires two steps as follows:
      % ./mk_game_results dir_of_csa_files > 00list
      % ./mk_rate 00list > players.html
      or
      % ./mk_game_results dir_of_csa_files | ./mk_rate > players.html
    (Closes: #19454)

10 years agoRemoved the deprecated method.
beatles [Sun, 8 Nov 2009 13:48:48 +0000 (13:48 +0000)]
Removed the deprecated method.

10 years agospecify size
tkaneko [Wed, 4 Nov 2009 11:57:32 +0000 (11:57 +0000)]
specify size

10 years agoCorrected the expected results.
beatles [Sun, 1 Nov 2009 13:32:36 +0000 (13:32 +0000)]
Corrected the expected results.

10 years agotest_not_uchifuzume was not erronously executed. Now the method is tested.
beatles [Sun, 1 Nov 2009 13:32:35 +0000 (13:32 +0000)]
test_not_uchifuzume was not erronously executed. Now the method is tested.

10 years agoImproved stability of the test result.
beatles [Sun, 1 Nov 2009 13:32:34 +0000 (13:32 +0000)]
Improved stability of the test result.

10 years agochanged x-bias of black and that of white, in order to place the evaluation by the...
tkaneko [Tue, 6 Oct 2009 07:29:30 +0000 (07:29 +0000)]
changed x-bias of black and that of white, in order to place the evaluation by the last-moved player at the rightmost

10 years agoRemoved a debugging line
beatles [Sun, 23 Aug 2009 14:05:24 +0000 (14:05 +0000)]
Removed a debugging line

10 years ago* Return [...] +OK after %%SETBUOY and %%DELETEBUOY commands
beatles [Sun, 9 Aug 2009 06:17:36 +0000 (06:17 +0000)]
* Return [...] +OK after %%SETBUOY and %%DELETEBUOY commands
* A buoy game was not started after %%SETBUOY command.

10 years ago* Starting a buoy game by %%GAME caused an server error.
beatles [Sun, 9 Aug 2009 06:17:35 +0000 (06:17 +0000)]
* Starting a buoy game by %%GAME caused an server error.
* To_Move of a proposed game lines was incorrect.

10 years agoRemoved a debug line.
beatles [Sat, 8 Aug 2009 05:28:00 +0000 (05:28 +0000)]
Removed a debug line.

10 years ago* The counter of a buoy game is decremented before the game is started.
beatles [Thu, 6 Aug 2009 14:35:37 +0000 (14:35 +0000)]
* The counter of a buoy game is decremented before the game is started.
* GETBUOYCOUNT returns -1 when a non-existing game is searched.

10 years agoForgot to add them at r338
beatles [Wed, 29 Jul 2009 13:53:03 +0000 (13:53 +0000)]
Forgot to add them at r338

10 years agoExperimantal implementation for specified games, codenamed Buoy.
beatles [Wed, 29 Jul 2009 13:48:31 +0000 (13:48 +0000)]
Experimantal implementation for specified games, codenamed Buoy.

10 years ago* [shogi-server]
beatles [Wed, 29 Jul 2009 13:48:30 +0000 (13:48 +0000)]
* [shogi-server]
  - Added shogi_server/command.rb: refactored commands out of player.rb, and assign a dedicated class for each command

10 years agoAdded a test case for Floodgate::History
beatles [Thu, 18 Jun 2009 13:28:09 +0000 (13:28 +0000)]
Added a test case for Floodgate::History

10 years ago* [shogi-server]
beatles [Thu, 18 Jun 2009 13:28:08 +0000 (13:28 +0000)]
* [shogi-server]
  - An emtpy floodgate_history.yaml caused a server error. This
    issue has been fixed.
    (Closes: #15124)

10 years ago* [shogi-server]
beatles [Wed, 17 Jun 2009 14:44:24 +0000 (14:44 +0000)]
* [shogi-server]
  - If a new game matched between two players is not started within
    a certain time (default 120 seconds) (i.e. the agree_waiting or
    start_waiting state lasts too long), the Server REJECTs the game.
    (Closes: #14425)

10 years agoAdded more test cases.
beatles [Wed, 17 Jun 2009 14:44:23 +0000 (14:44 +0000)]
Added more test cases.

10 years ago* [shogi-server]
beatles [Mon, 15 Jun 2009 14:24:34 +0000 (14:24 +0000)]
* [shogi-server]
  - When a Gote player AGREEd a new game and then a Sente player
    logged out (LOGOUT), the Gote incorrectly received a LOGOUT message
    from the server. Since Gote's state was not AGREEd or STARTed yet,
    the Gote should be REJECTed. This issue has been fixed.
    (Closes: #17335)

10 years ago* [shogi-server]
beatles [Sun, 14 Jun 2009 08:14:59 +0000 (08:14 +0000)]
* [shogi-server]
  - The Board could not recognize a certain pattern of
    Oute-Sennichite. This issue has been fixed.
    (Closes: #13966)

10 years agoAdded a new file: utils/correct-bug14635.rb
beatles [Sun, 22 Mar 2009 07:09:02 +0000 (07:09 +0000)]
Added a new file: utils/correct-bug14635.rb

10 years agoImproved performance.
beatles [Sat, 7 Mar 2009 10:55:20 +0000 (10:55 +0000)]
Improved performance.

11 years ago* [shogi-server]
beatles [Sun, 15 Feb 2009 14:37:18 +0000 (14:37 +0000)]
* [shogi-server]
  - A duplicated comment that is the one of the previous (or older)
    move might be erroneously recorded in a csa file. This issue has
    been fixed. (Closes: #15080)

11 years agoPlayer names are compared in a case-insensitive way.
beatles [Sun, 15 Feb 2009 14:37:17 +0000 (14:37 +0000)]
Player names are compared in a case-insensitive way.

11 years ago * [utils/csa-filter.rb]
beatles [Wed, 11 Feb 2009 06:06:24 +0000 (06:06 +0000)]
 * [utils/csa-filter.rb]
   - Added a new file. This program filters CSA files.

11 years ago* [shogi-server]
beatles [Sun, 1 Feb 2009 05:44:10 +0000 (05:44 +0000)]
* [shogi-server]
  - The shogi-server records csa files of games in an illegal
    format. This issue has been fixed. (Closes: #14635)
  - A ##[MONITOR] command for showing a game result such as %TORYO
    was not correct. This issue has been fixed.

11 years agoForgot to add this file.
beatles [Tue, 13 Jan 2009 14:08:32 +0000 (14:08 +0000)]
Forgot to add this file.

11 years agoApplied the changes at r315 [mk_rate] to the test cases.
beatles [Tue, 13 Jan 2009 14:08:32 +0000 (14:08 +0000)]
Applied the changes at r315 [mk_rate] to the test cases.

11 years ago* [shogi_server]
beatles [Tue, 13 Jan 2009 13:53:05 +0000 (13:53 +0000)]
* [shogi_server]
  - It failed to proccess a game result, OuteKaihiMoreWin where a
    checked king does not escape. This issue has been fixed.

11 years ago- shogi_server/players.rb: When a player was finishing with its
beatles [Fri, 2 Jan 2009 23:47:47 +0000 (23:47 +0000)]
- shogi_server/players.rb: When a player was finishing with its
  write socket broken, there was a chance that the thread of the
  player in the giant lock had to wait for a long time (about 20
  seconds), which might cause threads of other players stop and
  time out. (Closes: #14469)

11 years ago* [shogi-server]
beatles [Fri, 2 Jan 2009 23:47:44 +0000 (23:47 +0000)]
* [shogi-server]
  - shogi_server/timeout_queue.rb: the timeout parameter of the
    constructor was not respected erroneously. This issue
    has been fixed.

11 years agoStub files connecting to a shogigraphic server.
beatles [Fri, 2 Jan 2009 02:27:47 +0000 (02:27 +0000)]
Stub files connecting to a shogigraphic server.

11 years ago[mk_html]
beatles [Tue, 30 Dec 2008 06:46:47 +0000 (06:46 +0000)]
[mk_html]
- Added a new option: --footer filename, which inserts contents of
  the filename at the bottom of a genrated page. A text specific to
  wdoor should be written by using this option.
  (Closes: #14470)
- It does no more depend on RDoc. RDoc::usage does not work well
  (due to RDoc).

11 years agoForgot to add a new file.
beatles [Sun, 28 Dec 2008 15:10:42 +0000 (15:10 +0000)]
Forgot to add a new file.

11 years ago* [mk_rate]
beatles [Sun, 28 Dec 2008 15:10:10 +0000 (15:10 +0000)]
* [mk_rate]
  - File names can be put into STDIN instead of specifying directory
    names in command line arguments.
* [csa-file-filter]
  - New file. It filters kifu files and is of use for a pre-filter
    of mk_rate.

11 years ago[mk_rate]
beatles [Sun, 28 Dec 2008 01:41:16 +0000 (01:41 +0000)]
[mk_rate]
- Check kifu files more carefully so that files that contain
  incomplete records are skipped.
-  mk_rate might have failed to alloc due to out of memory. Now it
   consumes less memory (about 200MB instead of 2GB).

11 years agoRevert the previouse commit on "[mk_rate]"
beatles [Sun, 28 Dec 2008 01:41:15 +0000 (01:41 +0000)]
Revert the previouse commit on "[mk_rate]"

This reverts commit 10280ef2b8d87355bb0999cf0ec344e85904c50e.

11 years ago[mk_rate]
beatles [Sat, 27 Dec 2008 12:27:40 +0000 (12:27 +0000)]
[mk_rate]
- Check kifu files more carefully so that files that contain
  incomplete records are skipped.
- Optimized for speed and memory size so that mk_rate might fail
  to alloc due to out of memory.

11 years agoCheck kifu files more carefully so that inproper files are skipped.
beatles [Fri, 26 Dec 2008 11:07:51 +0000 (11:07 +0000)]
Check kifu files more carefully so that inproper files are skipped.
An error example that has been fixed:
/home/kaneko/bin/mk_rate:570:in `add': Never reached! (RuntimeError)
  from /home/kaneko/bin/mk_rate:612:in `grep'
  from /home/kaneko/bin/mk_rate:675:in `main'
  from /home/kaneko/bin/mk_rate:675:in `glob'
  from /home/kaneko/bin/mk_rate:675:in `main'
  from /home/kaneko/bin/mk_rate:739

11 years agoValidate a yaml file for floodagte history. If it is invalid, the default value ...
beatles [Sun, 14 Dec 2008 15:13:19 +0000 (15:13 +0000)]
Validate a yaml file for floodagte history. If it is invalid, the default value (an empty array) is used.

11 years ago* [shogi-server]
beatles [Sat, 13 Dec 2008 13:37:45 +0000 (13:37 +0000)]
* [shogi-server]
  - A lotated log file is moved to $topdir/YYYY/MM/DD.
    (Closes: #14245)

11 years ago* [shogi-server]
beatles [Sat, 13 Dec 2008 13:37:44 +0000 (13:37 +0000)]
* [shogi-server]
  - Improved an existance check and etc. of directories specified
    by command line options, expecially in case of the daemon mode.
    (Closes: #14244)

11 years ago* Changed the stley of the comment lines to RDoc's one.
beatles [Sun, 30 Nov 2008 15:12:15 +0000 (15:12 +0000)]
* Changed the stley of the comment lines to RDoc's one.
* Added Prerequires and Install descriptoins.
* Added Makefile that can generate html documents using RDoc.

11 years agoBetter message for a failure case
beatles [Sun, 30 Nov 2008 09:15:35 +0000 (09:15 +0000)]
Better message for a failure case

11 years agoPieces in hands are correctly recognized now.
beatles [Sun, 30 Nov 2008 09:15:34 +0000 (09:15 +0000)]
Pieces in hands are correctly recognized now.

11 years agoRefactoring. Moved a method from the test case to board.rb so that the method is...
beatles [Sun, 30 Nov 2008 09:15:33 +0000 (09:15 +0000)]
Refactoring. Moved a method from the test case to board.rb so that the method is available in anoth
er test case.

11 years ago* [shogi-server]
beatles [Fri, 28 Nov 2008 10:56:05 +0000 (10:56 +0000)]
* [shogi-server]
  - Added sample/*.sh for command line samples.

11 years agoChecked the status of the write thread before sending an "end" message.
beatles [Wed, 26 Nov 2008 14:22:25 +0000 (14:22 +0000)]
Checked the status of the write thread before sending an "end" message.

11 years agoShortened a debug message.
beatles [Wed, 26 Nov 2008 14:22:02 +0000 (14:22 +0000)]
Shortened a debug message.

11 years agoImproved the test case.
beatles [Wed, 26 Nov 2008 14:02:16 +0000 (14:02 +0000)]
Improved the test case.

11 years agoFailed to correctly check Floodgate game names due to the carelss change at the previ...
beatles [Tue, 25 Nov 2008 14:50:43 +0000 (14:50 +0000)]
Failed to correctly check Floodgate game names due to the carelss change at the previous commit.

11 years agoAdded a comment for --floodgate-history
beatles [Tue, 25 Nov 2008 03:41:48 +0000 (03:41 +0000)]
Added a comment for --floodgate-history

11 years agoFixed a typo
beatles [Tue, 25 Nov 2008 03:41:47 +0000 (03:41 +0000)]
Fixed a typo

11 years agoRemoved a redundant log message
beatles [Tue, 25 Nov 2008 03:41:46 +0000 (03:41 +0000)]
Removed a redundant log message

11 years ago* Debugged History.
beatles [Tue, 25 Nov 2008 03:41:46 +0000 (03:41 +0000)]
* Debugged History.
* Debugged the command line for History.
* log_info() is an alias to log_message().

11 years agoImproved log messages.
beatles [Tue, 25 Nov 2008 03:41:44 +0000 (03:41 +0000)]
Improved log messages.

11 years agoAdded a new command line to specify floodgate_history.yaml file.
beatles [Fri, 7 Nov 2008 07:15:08 +0000 (07:15 +0000)]
Added a new command line to specify floodgate_history.yaml file.

11 years agoImplemented Swiss pairing.
beatles [Fri, 7 Nov 2008 07:15:03 +0000 (07:15 +0000)]
Implemented Swiss pairing.

11 years agoForgot to add a bug number
beatles [Fri, 7 Nov 2008 07:15:00 +0000 (07:15 +0000)]
Forgot to add a bug number

11 years agoDebugged History
beatles [Fri, 7 Nov 2008 07:14:51 +0000 (07:14 +0000)]
Debugged History

11 years agoRecord Floodgate games' history
beatles [Fri, 7 Nov 2008 07:14:46 +0000 (07:14 +0000)]
Record Floodgate games' history

11 years ago* Changed white's line color back to dark-grean.
beatles [Sun, 26 Oct 2008 11:08:01 +0000 (11:08 +0000)]
* Changed white's line color back to dark-grean.
* Time is start from +- 3000 (max Y axis)
* Changed `read' api, which will be called by index.cgi

11 years agoDid some refactorings.
beatles [Sun, 19 Oct 2008 14:02:29 +0000 (14:02 +0000)]
Did some refactorings.

11 years agoCare about the byoyomi case where the consumed time should be zero.
beatles [Sun, 19 Oct 2008 14:02:28 +0000 (14:02 +0000)]
Care about the byoyomi case where the consumed time should be zero.

11 years ago* [utils/eval_graph.rb]
beatles [Sun, 19 Oct 2008 11:42:35 +0000 (11:42 +0000)]
* [utils/eval_graph.rb]
  - Display time control graphs as well.
    Thanks to Nishimura-san for this idea.

11 years agoUse Thrift (RPC) instead of executing directly a command to generate image files.
beatles [Tue, 14 Oct 2008 11:48:49 +0000 (11:48 +0000)]
Use Thrift (RPC) instead of executing directly a command to generate image files.

11 years agoInitialize the random seed
beatles [Tue, 14 Oct 2008 11:48:48 +0000 (11:48 +0000)]
Initialize the random seed

11 years agoMore verbose logging
beatles [Tue, 14 Oct 2008 11:48:46 +0000 (11:48 +0000)]
More verbose logging

11 years agoWhen a game draws, the server may crash. This issue has been fixed.
beatles [Sun, 12 Oct 2008 04:10:25 +0000 (04:10 +0000)]
When a game draws, the server may crash. This issue has been fixed.

11 years agoNot have milliseconds logged.
beatles [Wed, 8 Oct 2008 14:09:28 +0000 (14:09 +0000)]
Not have milliseconds logged.

11 years ago* [shogi-server]
beatles [Wed, 8 Oct 2008 13:54:27 +0000 (13:54 +0000)]
* [shogi-server]
  - Ruby 1.8.7 (or later) must be used. Ruby 1.8.6 is not supported.
  - Daemon mode is available.
  - shogi_server/piece_ky.rb is again merged with
    shogi_server/piece.rb, then has been removed.
  - Added a test case, TC_usi.rb.

11 years ago* Added TC_usi.rb.
beatles [Wed, 8 Oct 2008 13:38:20 +0000 (13:38 +0000)]
* Added TC_usi.rb.
* Sorted by file name.

11 years agoInitial file
beatles [Wed, 8 Oct 2008 13:38:19 +0000 (13:38 +0000)]
Initial file

11 years agoRemoved deprecated test cases.
beatles [Wed, 8 Oct 2008 13:38:19 +0000 (13:38 +0000)]
Removed deprecated test cases.

11 years agoFixed a bug. League::save has been deprecated.
beatles [Wed, 8 Oct 2008 13:38:18 +0000 (13:38 +0000)]
Fixed a bug. League::save has been deprecated.

11 years agoBack to Marshal for deep copy.
beatles [Wed, 8 Oct 2008 13:38:18 +0000 (13:38 +0000)]
Back to Marshal for deep copy.
  * previous implementatoin was wrong.
  * No longer need to avoid Marshal since only the files related with Floodgate
    are reloaded.

11 years agoDebugged the daemon mode
beatles [Tue, 7 Oct 2008 13:11:51 +0000 (13:11 +0000)]
Debugged the daemon mode

11 years agoplayers.yaml is now read only. The server no longer writes last_game_win data to...
beatles [Tue, 7 Oct 2008 13:09:10 +0000 (13:09 +0000)]
players.yaml is now read only. The server no longer writes last_game_win data to it. It will be written in another file (in future).

11 years agoDebugged Floodgate
beatles [Mon, 6 Oct 2008 03:51:36 +0000 (03:51 +0000)]
Debugged Floodgate

11 years agoDebugging Floodgate
beatles [Sun, 5 Oct 2008 15:05:13 +0000 (15:05 +0000)]
Debugging Floodgate

11 years agoRefactored shogi_server/pairing.rb
beatles [Sun, 5 Oct 2008 09:19:20 +0000 (09:19 +0000)]
Refactored shogi_server/pairing.rb

11 years agoApplied Kaneko's patch
beatles [Sun, 5 Oct 2008 09:19:19 +0000 (09:19 +0000)]
Applied Kaneko's patch

11 years ago* No loger use Dependencies.rb in Rails.
beatles [Thu, 2 Oct 2008 15:05:26 +0000 (15:05 +0000)]
* No loger use Dependencies.rb in Rails.
* Debugged write thread termination.

11 years agoRefactored.
beatles [Thu, 2 Oct 2008 04:04:11 +0000 (04:04 +0000)]
Refactored.

11 years agoUnder debugging
beatles [Wed, 1 Oct 2008 15:03:50 +0000 (15:03 +0000)]
Under debugging

11 years agoAdded Usi implementation.
beatles [Fri, 15 Aug 2008 11:09:23 +0000 (11:09 +0000)]
Added Usi implementation.

11 years agoMy works so far
beatles [Sat, 9 Aug 2008 15:31:56 +0000 (15:31 +0000)]
My works so far

11 years agoAdded a new accessor: Board#teban
beatles [Sat, 9 Aug 2008 15:31:55 +0000 (15:31 +0000)]
Added a new accessor: Board#teban

11 years agoFile.expand_path should be peformed before File.directory? check
beatles [Sat, 9 Aug 2008 15:31:54 +0000 (15:31 +0000)]
File.expand_path should be peformed before File.directory? check

11 years ago$logger may or may not be a file
beatles [Mon, 30 Jun 2008 15:18:46 +0000 (15:18 +0000)]
$logger may or may not be a file

11 years ago* [shogi-server]
beatles [Mon, 30 Jun 2008 15:09:47 +0000 (15:09 +0000)]
* [shogi-server]
  - Added a new option --player-log-dir, which allows users to log
    messages that are received or sent to the wire.

11 years ago- If a player, including a monitor, stuck at the time of sending
beatles [Sat, 28 Jun 2008 12:56:32 +0000 (12:56 +0000)]
- If a player, including a monitor, stuck at the time of sending
  messages to the wire, which means that the giant lock was locked,
  it might have prevented other players from processing until
  timeout occurred. This issue has been fixed. (Closes #12555)

11 years agoForgot to add the case number
beatles [Sat, 28 Jun 2008 07:17:16 +0000 (07:17 +0000)]
Forgot to add the case number

11 years ago* [shogi-server]
beatles [Sat, 28 Jun 2008 07:15:42 +0000 (07:15 +0000)]
* [shogi-server]
  - A rating comment line is now written before the first move in a
    record file instead of after the last move, which allows other
    applications watching a game to recognize players in the middle
    of the game.