OSDN Git Service

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

12 years ago* [shogi-server]
beatles [Fri, 9 May 2008 17:59:42 +0000 (17:59 +0000)]
* [shogi-server]
- The server could not recognize uchifuzume as an illegal move.
  This bug has been fixed.

12 years ago* [shogi-server]
beatles [Mon, 5 May 2008 12:37:09 +0000 (12:37 +0000)]
* [shogi-server]
- .csa files will be located in a sub directory such as
  "2008/05/05/*.csa". Thease days, we have many games in a day.
  This change will help users browse a file list.

12 years agomore friendly color and display of last modified time
beatles [Sat, 3 May 2008 07:25:58 +0000 (07:25 +0000)]
more friendly color and display of last modified time

12 years agoShow players who have accessed in the last 30 minutes with
beatles [Sat, 3 May 2008 07:11:55 +0000 (07:11 +0000)]
Show players who have accessed in the last 30 minutes with
different colors.

12 years agoWhen YSS was not rated on the wdoor mode, wrong rate24 scores
beatles [Tue, 22 Apr 2008 04:05:25 +0000 (04:05 +0000)]
When YSS was not rated on the wdoor mode, wrong rate24 scores
were displayed. This issue has been fixed. Now YSS absence
results in "N/A".

12 years agoThe half-life period is now configurable.
beatles [Mon, 21 Apr 2008 10:17:32 +0000 (10:17 +0000)]
The half-life period is now configurable.
ex $ ./mk_rate --half-life 14 --half-life-ignore 7 <records>

12 years agoRenamed variables (@id) since they caused Ruby's warning.
beatles [Sat, 12 Apr 2008 04:20:21 +0000 (04:20 +0000)]
Renamed variables (@id) since they caused Ruby's warning.

12 years agoImproved a way to handle diferred moves (2008-03-24's change),
beatles [Fri, 11 Apr 2008 03:59:45 +0000 (03:59 +0000)]
Improved a way to handle diferred moves (2008-03-24's change),
based on Tomoyuki Kaneko's patch.

12 years ago* [shogi-server]
beatles [Tue, 1 Apr 2008 14:15:23 +0000 (14:15 +0000)]
* [shogi-server]
  - An incorrect LOGIN crashed the server. This issue has been
    fixed.

12 years ago* [shogi-server]
beatles [Mon, 24 Mar 2008 14:40:53 +0000 (14:40 +0000)]
* [shogi-server]
  - Converting characters for comments in moves caused an error. This
    issue has been fixed.
  - If a player moves in the opponent's turn, it is illegal. But the
    current CSA protocol does not clearly define a way to tell so to
    the players. This shogi-server internally keeps such a move in a
    buffer and replay it when the player of the move gets his/her
    turn.

12 years agoFixed wrong determination of sennichite.
beatles [Sun, 16 Mar 2008 07:38:48 +0000 (07:38 +0000)]
Fixed wrong determination of sennichite.

12 years agoutils/players-graph.rb
beatles [Mon, 10 Mar 2008 15:00:29 +0000 (15:00 +0000)]
utils/players-graph.rb

12 years agoset yss's rating 2300
tkaneko [Sun, 9 Mar 2008 11:49:54 +0000 (11:49 +0000)]
set yss's rating 2300

12 years agouse linear regression to solve system. this is a workaround for singular matrix.
tkaneko [Sun, 9 Mar 2008 11:49:21 +0000 (11:49 +0000)]
use linear regression to solve system.  this is a workaround for singular matrix.

12 years agouse Householder transformation to solve linear systems, as suggested by daigo
tkaneko [Sun, 9 Mar 2008 11:20:56 +0000 (11:20 +0000)]
use Householder transformation to solve linear systems, as suggested by daigo

12 years agoenabled ExcludeSacrifice by default
tkaneko [Sun, 9 Mar 2008 11:19:28 +0000 (11:19 +0000)]
enabled ExcludeSacrifice by default

12 years ago* [mk_html]
beatles [Sat, 8 Mar 2008 01:52:41 +0000 (01:52 +0000)]
* [mk_html]
- Added an option --wdoor. In this mode, a rate expected at Shogi
  Club 24 is calculated from YSS's rating (he is 2400 now).

12 years agoIf the computed ratings do not stabilize, then mk_rate aborts.
beatles [Tue, 4 Mar 2008 15:09:56 +0000 (15:09 +0000)]
If the computed ratings do not stabilize, then mk_rate aborts.
  $ ./mk_rate dir && ./mk_rate dir > players.yaml
can avoid rewriting the invalid ratings to the file.

12 years agoRefactoring
beatles [Tue, 26 Feb 2008 15:32:27 +0000 (15:32 +0000)]
Refactoring

12 years agoRefactoring
beatles [Tue, 26 Feb 2008 14:12:38 +0000 (14:12 +0000)]
Refactoring

12 years agoComments are converted to EUC-JP and then written in a log.
beatles [Fri, 22 Feb 2008 15:37:41 +0000 (15:37 +0000)]
Comments are converted to EUC-JP and then written in a log.

12 years agoReleased players-graph.rb
beatles [Thu, 21 Feb 2008 14:14:52 +0000 (14:14 +0000)]
Released players-graph.rb

12 years agoFor SwissPairing, the odd winners include a newbie who is not rated yet, a player...
beatles [Mon, 18 Feb 2008 03:35:11 +0000 (03:35 +0000)]
For SwissPairing, the odd winners include a newbie who is not rated yet, a player to be removed is selected at random instead of the least-rated palyer.