OSDN Git Service

shogi-server/shogi-server.git
11 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

11 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.

11 years agoDo not raise in the case of invalid arguments
beatles [Sat, 28 Jun 2008 02:05:09 +0000 (02:05 +0000)]
Do not raise in the case of invalid arguments

11 years ago* [shogi-server]
beatles [Sat, 28 Jun 2008 01:56:29 +0000 (01:56 +0000)]
* [shogi-server]
  -  Pairing players might not have shuffled players because of
     poor shuffling algorithm. This issue has been fixed.
     (Closes: #12661)

11 years ago[players_graph.rb]
beatles [Wed, 25 Jun 2008 15:27:11 +0000 (15:27 +0000)]
[players_graph.rb]
- Check invalid arguments. (Closes: #12856)

11 years agoregular expressoin is available for matching player name
beatles [Mon, 23 Jun 2008 14:34:51 +0000 (14:34 +0000)]
regular expressoin is available for matching player name

11 years agoAdded a new option: --fixed-rate and --fixed-rate-player whose rate always results...
beatles [Mon, 23 Jun 2008 14:19:47 +0000 (14:19 +0000)]
Added a new option: --fixed-rate and --fixed-rate-player whose rate always results in that rate.

11 years agoApplied r247 changes for the test cases (spliting hte file).
beatles [Fri, 6 Jun 2008 16:24:25 +0000 (16:24 +0000)]
Applied r247 changes for the test cases (spliting hte file).
Not yet completed. I will keep on woring.

11 years ago[shogi-server]
beatles [Fri, 6 Jun 2008 15:28:11 +0000 (15:28 +0000)]
[shogi-server]
- The source has been splited to multiple sub files.
- The program now depends on rubygems and activesupport.
- The program can reload the source files on the flight, by
  sending a HUP signal to the server.
- The server log will be rotated daily.

12 years ago* [shogi-server]
beatles [Sun, 18 May 2008 15:05:29 +0000 (15:05 +0000)]
* [shogi-server]
  - Last game results (win or lose) of x1 players were not
    available on the next game. This issue has been fixed.
    Thanks to Tomoyuki Kaneko for debugging.
  - For draw games, "'rating" line in a .csa file was
    wrong (meaningless). This issue has been fixed.
  - Factored out GameResult classes

12 years agoFollowed the directory tree change caused by the repository's move from CVS to Subversion
beatles [Sun, 18 May 2008 15:05:28 +0000 (15:05 +0000)]
Followed the directory tree change caused by the repository's move from CVS to Subversion

12 years agoSet svn properties $ svn propset svn:keywords 'Id Author Date Rev'
beatles [Sun, 18 May 2008 09:11:13 +0000 (09:11 +0000)]
Set svn properties $ svn propset svn:keywords 'Id Author Date Rev'

12 years agoRemoved the test file
beatles [Fri, 16 May 2008 14:43:13 +0000 (14:43 +0000)]
Removed the test file

12 years agoThe utility programs have been moved under 'shogi-server'
beatles [Fri, 16 May 2008 14:41:34 +0000 (14:41 +0000)]
The utility programs have been moved under 'shogi-server'

12 years agonew directory
beatles [Fri, 16 May 2008 14:40:28 +0000 (14:40 +0000)]
new directory

12 years agoTest commit to see if a commit mail is sent.
beatles [Fri, 16 May 2008 13:06:45 +0000 (13:06 +0000)]
Test commit to see if a commit mail is sent.

12 years agoTest commit to see if a commit mail is sent.
beatles [Fri, 16 May 2008 12:51:06 +0000 (12:51 +0000)]
Test commit to see if a commit mail is sent.

12 years ago* [news]
beatles [Fri, 16 May 2008 12:22:32 +0000 (12:22 +0000)]
* [news]
  - The repository has been converted from CVS to Subversion.

12 years agoChanged the directory name
beatles [Fri, 16 May 2008 12:20:14 +0000 (12:20 +0000)]
Changed the directory name

12 years agoChanging the directory name
beatles [Fri, 16 May 2008 12:19:56 +0000 (12:19 +0000)]
Changing the directory name

12 years agoThe 'test' directory has been moved under 'shogi-server'
beatles [Fri, 16 May 2008 12:14:36 +0000 (12:14 +0000)]
The 'test' directory has been moved under 'shogi-server'

12 years ago- Give default values to BasicPlayer, which fixed undefined
beatles [Wed, 14 May 2008 01:52:45 +0000 (01:52 +0000)]
- Give default values to BasicPlayer, which fixed undefined
  method error in Pairing.

12 years ago* [shogi-server]
beatles [Wed, 14 May 2008 01:22:33 +0000 (01:22 +0000)]
* [shogi-server]
  - Floodgate's thread could cause an error when players.yaml was
    cleared by another program (mk_rate). This issue has been
    fixed.

12 years agoUse a system method to encode URLs
beatles [Sun, 11 May 2008 04:01:21 +0000 (04:01 +0000)]
Use a system method to encode URLs

12 years agodo not use delete_least_rate_player, since it seemed cause an error "undefined method...
tkaneko [Sat, 10 May 2008 14:05:07 +0000 (14:05 +0000)]
do not use delete_least_rate_player, since it seemed cause an error "undefined method <=> for nil:NilClass" in paring in floodgatemode around 2008-05-10 22:30

12 years agoshow backtrace in case of exception, as suggested by yoshiki
tkaneko [Sat, 10 May 2008 14:02:18 +0000 (14:02 +0000)]
show backtrace in case of exception, as suggested by yoshiki

12 years agoadd trip in hyper-links to show-player.cgi, as well as the name of programs
tkaneko [Sat, 10 May 2008 14:01:18 +0000 (14:01 +0000)]
add trip in hyper-links to show-player.cgi, as well as the name of programs

12 years ago- The server crashed by an undefined method error.
beatles [Fri, 9 May 2008 18:20:51 +0000 (18:20 +0000)]
- The server crashed by an undefined method error.
  This issue has been fixed.