OSDN Git Service
beatles [Sun, 27 Dec 2009 04:26:46 +0000 (04:26 +0000)]
Floodgate games were not started. This issue has been fixed.
beatles [Sat, 26 Dec 2009 01:40:20 +0000 (01:40 +0000)]
* [shogi-server]
- The server can now provide multiple floodgate modes such as
floodgate-900-0 and floodgate-3600-0.
beatles [Sat, 26 Dec 2009 01:40:19 +0000 (01:40 +0000)]
The game_name attribute has been moved to the super class, BasicPlayer.
In order to test cases using BasicPlayer class, it now requires the game_name attribute.
beatles [Sat, 26 Dec 2009 01:40:18 +0000 (01:40 +0000)]
- shogi-server, shogi_server/league/floodgate.rb: Changed the argument of Floodgate.new.
beatles [Sat, 26 Dec 2009 01:40:17 +0000 (01:40 +0000)]
Moved TestPairing class to test/TC_pairing.rb.
Refactoring.
beatles [Sat, 26 Dec 2009 01:40:16 +0000 (01:40 +0000)]
- shogi_server/pairing.rb: Added a new class: StartGameWithoutHumans.
This tries to make pairs trying to avoid a human-human match. This is now enabled instread of the previous class: StartGame.
beatles [Sat, 26 Dec 2009 01:40:15 +0000 (01:40 +0000)]
- shogi_server/player.rb: Added new methods: is_human? and is_computer?.
A human player is recommened to use a name ending with '_human'.
ex. 'hoge_human', 'hoge_human@p1'
beatles [Fri, 4 Dec 2009 10:32:07 +0000 (10:32 +0000)]
Took (a bit) care of Windows platforms.
The HUP signal is not supported by Ruby on Windows. Now it is disabled on Windows.
beatles [Sun, 29 Nov 2009 14:52:39 +0000 (14:52 +0000)]
Corrected.
beatles [Wed, 25 Nov 2009 09:00:59 +0000 (09:00 +0000)]
Added a tool to investicate statistics of csa kifu files
beatles [Sun, 15 Nov 2009 13:24:45 +0000 (13:24 +0000)]
* [mk_rate]
- Added a new command line option: --base-date. You can specify a
base date to calculate rating scores. Games in the `future' are
ignored for the calculation.
beatles [Sun, 15 Nov 2009 13:24:44 +0000 (13:24 +0000)]
Added a new feature, LoggingObserver, which logs a result of each game.
beatles [Sun, 15 Nov 2009 13:24:44 +0000 (13:24 +0000)]
Corrected typo
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.
beatles [Sun, 15 Nov 2009 13:24:42 +0000 (13:24 +0000)]
Split GameResult related classes to shogi_server/game_result.rb
beatles [Sun, 8 Nov 2009 14:38:12 +0000 (14:38 +0000)]
One more correction.
beatles [Sun, 8 Nov 2009 14:36:33 +0000 (14:36 +0000)]
Corrected.
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)
beatles [Sun, 8 Nov 2009 13:48:48 +0000 (13:48 +0000)]
Removed the deprecated method.
tkaneko [Wed, 4 Nov 2009 11:57:32 +0000 (11:57 +0000)]
specify size
beatles [Sun, 1 Nov 2009 13:32:36 +0000 (13:32 +0000)]
Corrected the expected results.
beatles [Sun, 1 Nov 2009 13:32:35 +0000 (13:32 +0000)]
test_not_uchifuzume was not erronously executed. Now the method is tested.
beatles [Sun, 1 Nov 2009 13:32:34 +0000 (13:32 +0000)]
Improved stability of the test result.
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
beatles [Sun, 23 Aug 2009 14:05:24 +0000 (14:05 +0000)]
Removed a debugging line
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.
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.
beatles [Sat, 8 Aug 2009 05:28:00 +0000 (05:28 +0000)]
Removed a debug line.
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.
beatles [Wed, 29 Jul 2009 13:53:03 +0000 (13:53 +0000)]
Forgot to add them at r338
beatles [Wed, 29 Jul 2009 13:48:31 +0000 (13:48 +0000)]
Experimantal implementation for specified games, codenamed Buoy.
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
beatles [Thu, 18 Jun 2009 13:28:09 +0000 (13:28 +0000)]
Added a test case for Floodgate::History
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)
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)
beatles [Wed, 17 Jun 2009 14:44:23 +0000 (14:44 +0000)]
Added more test cases.
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)
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)
beatles [Sun, 22 Mar 2009 07:09:02 +0000 (07:09 +0000)]
Added a new file: utils/correct-bug14635.rb
beatles [Sat, 7 Mar 2009 10:55:20 +0000 (10:55 +0000)]
Improved performance.
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)
beatles [Sun, 15 Feb 2009 14:37:17 +0000 (14:37 +0000)]
Player names are compared in a case-insensitive way.
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.
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.
beatles [Tue, 13 Jan 2009 14:08:32 +0000 (14:08 +0000)]
Forgot to add this file.
beatles [Tue, 13 Jan 2009 14:08:32 +0000 (14:08 +0000)]
Applied the changes at r315 [mk_rate] to the test cases.
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.
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)
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.
beatles [Fri, 2 Jan 2009 02:27:47 +0000 (02:27 +0000)]
Stub files connecting to a shogigraphic server.
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).
beatles [Sun, 28 Dec 2008 15:10:42 +0000 (15:10 +0000)]
Forgot to add a new file.
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.
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).
beatles [Sun, 28 Dec 2008 01:41:15 +0000 (01:41 +0000)]
Revert the previouse commit on "[mk_rate]"
This reverts commit
10280ef2b8d87355bb0999cf0ec344e85904c50e.
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.
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
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.
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)
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)
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.
beatles [Sun, 30 Nov 2008 09:15:35 +0000 (09:15 +0000)]
Better message for a failure case
beatles [Sun, 30 Nov 2008 09:15:34 +0000 (09:15 +0000)]
Pieces in hands are correctly recognized now.
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.
beatles [Fri, 28 Nov 2008 10:56:05 +0000 (10:56 +0000)]
* [shogi-server]
- Added sample/*.sh for command line samples.
beatles [Wed, 26 Nov 2008 14:22:25 +0000 (14:22 +0000)]
Checked the status of the write thread before sending an "end" message.
beatles [Wed, 26 Nov 2008 14:22:02 +0000 (14:22 +0000)]
Shortened a debug message.
beatles [Wed, 26 Nov 2008 14:02:16 +0000 (14:02 +0000)]
Improved the test case.
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.
beatles [Tue, 25 Nov 2008 03:41:48 +0000 (03:41 +0000)]
Added a comment for --floodgate-history
beatles [Tue, 25 Nov 2008 03:41:47 +0000 (03:41 +0000)]
Fixed a typo
beatles [Tue, 25 Nov 2008 03:41:46 +0000 (03:41 +0000)]
Removed a redundant log message
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().
beatles [Tue, 25 Nov 2008 03:41:44 +0000 (03:41 +0000)]
Improved log messages.
beatles [Fri, 7 Nov 2008 07:15:08 +0000 (07:15 +0000)]
Added a new command line to specify floodgate_history.yaml file.
beatles [Fri, 7 Nov 2008 07:15:03 +0000 (07:15 +0000)]
Implemented Swiss pairing.
beatles [Fri, 7 Nov 2008 07:15:00 +0000 (07:15 +0000)]
Forgot to add a bug number
beatles [Fri, 7 Nov 2008 07:14:51 +0000 (07:14 +0000)]
Debugged History
beatles [Fri, 7 Nov 2008 07:14:46 +0000 (07:14 +0000)]
Record Floodgate games' history
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
beatles [Sun, 19 Oct 2008 14:02:29 +0000 (14:02 +0000)]
Did some refactorings.
beatles [Sun, 19 Oct 2008 14:02:28 +0000 (14:02 +0000)]
Care about the byoyomi case where the consumed time should be zero.
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.
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.
beatles [Tue, 14 Oct 2008 11:48:48 +0000 (11:48 +0000)]
Initialize the random seed
beatles [Tue, 14 Oct 2008 11:48:46 +0000 (11:48 +0000)]
More verbose logging
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.
beatles [Wed, 8 Oct 2008 14:09:28 +0000 (14:09 +0000)]
Not have milliseconds logged.
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.
beatles [Wed, 8 Oct 2008 13:38:20 +0000 (13:38 +0000)]
* Added TC_usi.rb.
* Sorted by file name.
beatles [Wed, 8 Oct 2008 13:38:19 +0000 (13:38 +0000)]
Initial file
beatles [Wed, 8 Oct 2008 13:38:19 +0000 (13:38 +0000)]
Removed deprecated test cases.
beatles [Wed, 8 Oct 2008 13:38:18 +0000 (13:38 +0000)]
Fixed a bug. League::save has been deprecated.
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.
beatles [Tue, 7 Oct 2008 13:11:51 +0000 (13:11 +0000)]
Debugged the daemon mode
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).
beatles [Mon, 6 Oct 2008 03:51:36 +0000 (03:51 +0000)]
Debugged Floodgate
beatles [Sun, 5 Oct 2008 15:05:13 +0000 (15:05 +0000)]
Debugging Floodgate
beatles [Sun, 5 Oct 2008 09:19:20 +0000 (09:19 +0000)]
Refactored shogi_server/pairing.rb
beatles [Sun, 5 Oct 2008 09:19:19 +0000 (09:19 +0000)]
Applied Kaneko's patch