OSDN Git Service
Daigo Moriwaki [Sun, 4 Oct 2020 02:21:19 +0000 (11:21 +0900)]
Improve debug message
Daigo Moriwaki [Sun, 4 Oct 2020 02:16:49 +0000 (11:16 +0900)]
[shogi-server] Improve timed-up detection.
Previously, the server checked if a game got timed up when a player
in turn sent no message for a certain amount of time mainly defined
by Default_Timeout. If the player sent keep alive frequently, the
timed-up detection could be quite delayed.
This issue has been addressed. The server now checks timed up with
keep alive received as well. Players are notified with TIME_UP not
long before games gets timed up.
Daigo Moriwaki [Sun, 26 Aug 2018 03:14:53 +0000 (12:14 +0900)]
Merge remote-tracking branch 'origin/master'
Daigo Moriwaki [Sun, 26 Aug 2018 02:56:32 +0000 (11:56 +0900)]
Terminate threads of players so that the server shuts down (Closes #38544)
Daigo Moriwaki [Sun, 26 Aug 2018 00:14:48 +0000 (09:14 +0900)]
[shogi-server] Create a directory for a PID file. (Closes #38546)
To put a PID file such as /var/run/shogi-server/shogi-server.pid, if
directories do not exist, they will be created recursively.
Daigo Moriwaki [Sat, 25 Aug 2018 09:53:25 +0000 (18:53 +0900)]
Bump up the version
Daigo Moriwaki [Sat, 25 Aug 2018 09:52:47 +0000 (18:52 +0900)]
Fix typo and delete tailing spaces
Daigo Moriwaki [Sat, 25 Aug 2018 09:41:38 +0000 (18:41 +0900)]
* [shogi-server] Support a graceful shutdown. (Closes #38544)
A file named "STOP" in the base directory prevents the server from
starting new games including Floodgate matches.
Daigo Moriwaki [Sat, 7 Apr 2018 10:24:19 +0000 (19:24 +0900)]
Run shogi-server as a service, specifying a log output directory
Daigo Moriwaki [Sat, 7 Apr 2018 09:27:08 +0000 (18:27 +0900)]
Bump up the revision to
20180407
Daigo Moriwaki [Sat, 7 Apr 2018 06:07:34 +0000 (15:07 +0900)]
[shogi-server] Give more penalty on assigning matches with same players. (Closes #38178)
Daigo Moriwaki [Sat, 25 Nov 2017 13:03:43 +0000 (22:03 +0900)]
Start up shogi-server in foreground
Typical usage will be
% docker run -d --restart=always -p 4081:4081 -v `pwd`/player-logs:/shogilogs -e EVENT=self -e MAX_IDENTIFIER=256 shogiserver/shogiserver
Daigo Moriwaki [Sun, 3 Sep 2017 05:40:39 +0000 (14:40 +0900)]
Merge remote-tracking branch 'origin/master' into wdoor-stable
Daigo Moriwaki [Sun, 3 Sep 2017 05:39:13 +0000 (14:39 +0900)]
[shogi-server] Write game results in categorical files
The shogi-server now writes down game results in the following files,
depending on a game class:
- 00LIST: all games
- 00LIST.floodgate: floodgate games
- 00LIST.others: non-floodgate games
(Closes #37492)
Daigo Moriwaki [Sat, 2 Sep 2017 12:55:25 +0000 (21:55 +0900)]
Modify mk_rate to follow the change in mk_game_results
Daigo Moriwaki [Sat, 2 Sep 2017 12:45:32 +0000 (21:45 +0900)]
Fix mk_gamke_results so that it skip incomplete record filesZ
Daigo Moriwaki [Sat, 2 Sep 2017 11:26:54 +0000 (20:26 +0900)]
Merge remote-tracking branch 'origin/master' into wdoor-stable
Daigo Moriwaki [Sat, 2 Sep 2017 11:24:41 +0000 (20:24 +0900)]
Update Revision to
20170902
Daigo Moriwaki [Sat, 2 Sep 2017 11:22:27 +0000 (20:22 +0900)]
[shogi-server] [mk_game_results] Change schema to add number of moves
The format of an internal game result summary file, '00LIST',
has been changed to add number of moves of a game, which would be of
help for a script calculating rating scores.
(Closes #37491)
Daigo Moriwaki [Sat, 2 Sep 2017 11:14:43 +0000 (20:14 +0900)]
[shogi-server] Write more game results in record files
As the CSA Record Format standard states, "%TIME_UP" and
"%SENNICHITE" are now recorded in CSA files when a game ends for
timed up or sennichite respectively.
(Closes #37490)
Daigo Moriwaki [Sun, 26 Feb 2017 05:32:07 +0000 (14:32 +0900)]
Fix #37023: utils/csa-filter.rb: Allow csa-filter.rb to filter games by a winner or loser
New command lines, --winner <player> or --loser <player>, are now
supported to supply extra filtering conditions. Note that each
filter is combined as AND condition.
Daigo Moriwaki [Sun, 11 Dec 2016 04:23:12 +0000 (13:23 +0900)]
Merge remote-tracking branch 'origin/master' into wdoor-stable
Daigo Moriwaki [Sun, 11 Dec 2016 04:22:05 +0000 (13:22 +0900)]
Fix Dockerfile
Daigo Moriwaki [Sun, 11 Dec 2016 04:06:18 +0000 (13:06 +0900)]
Merge remote-tracking branch 'origin/master' into wdoor-stable
Daigo Moriwaki [Sun, 11 Dec 2016 04:05:56 +0000 (13:05 +0900)]
Update Revision to
20161211.
Daigo Moriwaki [Sun, 11 Dec 2016 04:03:26 +0000 (13:03 +0900)]
Merge remote-tracking branch 'origin/master' into wdoor-stable
Daigo Moriwaki [Fri, 9 Dec 2016 12:15:41 +0000 (21:15 +0900)]
Fix #36855: Allow util/statistics.rb to set a filtering condition of found files
Regarding util/statistics.rb, add a new command line option,
--filter regexp, to process files that are matched with a regexp.
It would make it easier to calculate statistics of certain games.
Daigo Moriwaki [Sat, 26 Nov 2016 10:03:49 +0000 (19:03 +0900)]
Remove a debug message
Daigo Moriwaki [Sat, 26 Nov 2016 10:01:41 +0000 (19:01 +0900)]
Correct Dockerfile so that it creates directories properly
Daigo Moriwaki [Sat, 26 Nov 2016 09:12:54 +0000 (18:12 +0900)]
Correct Docker's repository name
Daigo Moriwaki [Sat, 26 Nov 2016 09:02:22 +0000 (18:02 +0900)]
Fix #36822: Build a Docker image for Shogi-server
Daigo Moriwaki [Sat, 26 Nov 2016 09:01:39 +0000 (18:01 +0900)]
Fix #36821: Allow to customize maximum lenght of a login indentifier
Daigo Moriwaki [Sat, 9 Apr 2016 04:03:38 +0000 (13:03 +0900)]
Remove a debug message
Daigo Moriwaki [Sat, 9 Apr 2016 02:36:39 +0000 (11:36 +0900)]
Bump up the revision to
20160409.
Daigo Moriwaki [Sat, 9 Apr 2016 02:31:46 +0000 (11:31 +0900)]
Correct test cases to follow the changes for Fischer
Daigo Moriwaki [Sat, 9 Apr 2016 02:23:27 +0000 (11:23 +0900)]
utils/eval_graph.rb: Support Fischer time control.
Daigo Moriwaki [Sun, 3 Apr 2016 09:55:16 +0000 (09:55 +0000)]
Fix some lint warnings
Daigo Moriwaki [Sun, 3 Apr 2016 09:53:05 +0000 (09:53 +0000)]
Fix #36230: Support Fischer Time Control
Daigo Moriwaki [Sun, 13 Dec 2015 12:30:38 +0000 (21:30 +0900)]
Merge branch 'wdoor-stable'
Daigo Moriwaki [Sun, 13 Dec 2015 12:28:20 +0000 (21:28 +0900)]
Merge branch 'master' into wdoor-stable
Conflicts:
shogi_server.rb
Daigo Moriwaki [Sun, 13 Dec 2015 12:25:14 +0000 (21:25 +0900)]
Merge remote-tracking branch 'origin/master' into wdoor-stable
Conflicts:
changelog
Daigo Moriwaki [Sun, 13 Dec 2015 11:23:08 +0000 (20:23 +0900)]
Improve changelog
Daigo Moriwaki [Sun, 13 Dec 2015 09:59:20 +0000 (18:59 +0900)]
Merge branch '201512-leastdiff'
Daigo Moriwaki [Sun, 13 Dec 2015 09:58:21 +0000 (18:58 +0900)]
[shogi-server] shogi_server/pairing.rb: Attempt more trials
LeastDiff attempts more trials, depending of a number of players to be matched.
Daigo Moriwaki [Sun, 13 Dec 2015 08:55:14 +0000 (17:55 +0900)]
Merge branch '201512-maxmoves'
Daigo Moriwaki [Sun, 13 Dec 2015 08:53:04 +0000 (17:53 +0900)]
[shogi-server] Enhance capability of Floodgate configuration file
- New parameter: Max_Moves, defined in the CSA protocol
ex. set Max_Moves 256
- New parameter: Least_Time_Per_Move, defined in the CSA protocol
ex. set Least_Time_Per_Move 0
- Proposed messages distributed to each player upon starting a new
game will include Max_Moves as well as Least_Time_Per_Move.
- CSA files produced by the server will include settings of
Max_Moves and Least_Time_Per_Move in comment lines as follows:
'Max_Moves:256
'Least_Time_Per_Move:0
- The official Shogi-server on wdoor.c.u-tokyo.ac.jp will
be running with different parameters, depending on game names.
a) Max_Moves will be 256 for floodgate-600-10 games;
otherwise, 0.
b) Least_Time_Per_Move will be 0 for floodgate-600-10 games;
otherwise 1.
(Closes: #35839)
Daigo Moriwaki [Sat, 12 Dec 2015 04:09:11 +0000 (13:09 +0900)]
Merge branch '201512-timeclock'
Daigo Moriwaki [Fri, 27 Nov 2015 14:40:28 +0000 (23:40 +0900)]
Fix #35795: A time consumed could be -1
* [shogi-server] shogi_server/time_clock.rb:
- A time consumed could be -1.
* The start time of a move is captured after sending a move to a
player of the next turn at the end of the giant lock
* The end time of the move is captured at the exact time when the
server receives it before the giant lock
Therefore, end_time < start_time is possible when a player returns a
move instantly.
Thanks to Tomoyuki Kaneko for reporting this issue.
(Closes: #35795)
Daigo Moriwaki [Sat, 14 Feb 2015 08:40:28 +0000 (17:40 +0900)]
util/statistics.rb: Updated to investigate floodgate-600-10 games.
Daigo Moriwaki [Sun, 1 Feb 2015 02:33:09 +0000 (11:33 +0900)]
Adjust sleep intervals to get more stable test results
Daigo Moriwaki [Sun, 1 Feb 2015 02:32:31 +0000 (11:32 +0900)]
[shogi-server] - shogi_server/login.rb: When players are logged in, log their player_id if they have it.
Daigo Moriwaki [Sun, 1 Feb 2015 01:55:53 +0000 (10:55 +0900)]
Update the revision
Daigo Moriwaki [Tue, 20 Jan 2015 13:48:29 +0000 (22:48 +0900)]
[mk_html] Links to details pages for players now use a relative path so that it works on a testing site.
Daigo Moriwaki [Tue, 20 Jan 2015 13:39:05 +0000 (22:39 +0900)]
Getting an absolute location of this file was wrong if it was a synbolic link. This issue has been addressed.
Daigo Moriwaki [Sat, 17 Jan 2015 13:13:20 +0000 (22:13 +0900)]
Merge branch 'wdoor-stable'
Conflicts:
changelog
Daigo Moriwaki [Sat, 17 Jan 2015 13:12:04 +0000 (22:12 +0900)]
Merge remote-tracking branch 'origin/wdoor-stable' into wdoor-stable
Conflicts:
changelog
Daigo Moriwaki [Sat, 17 Jan 2015 09:23:00 +0000 (18:23 +0900)]
[shogi-server] shogi-server, shogi_server/{command,game_result,player}.rb: The change at 2014-10-13 was not worked as expected. Reworked.
A player, attempting to login with the current live player
stalling for more than a day, can forcibly override the current
player.
Daigo Moriwaki [Sat, 17 Jan 2015 01:47:58 +0000 (10:47 +0900)]
Merge branch '201410-maxmoves'
Conflicts:
changelog
shogi_server.rb
Daigo Moriwaki [Sat, 17 Jan 2015 01:44:28 +0000 (10:44 +0900)]
Update various documentations
Daigo Moriwaki [Sat, 17 Jan 2015 01:43:50 +0000 (10:43 +0900)]
Fix test failures related to MAX_MOVES and least time per move
Daigo Moriwaki [Sat, 17 Jan 2015 01:18:40 +0000 (10:18 +0900)]
Apply CSA Protocol V1.2.1 for MAX_MOVES
Daigo Moriwaki [Sat, 17 Jan 2015 00:39:29 +0000 (09:39 +0900)]
Refactor ChessClockWithLeastZero
Daigo Moriwaki [Sat, 17 Jan 2015 00:18:20 +0000 (09:18 +0900)]
Corrected a changelog entry
Daigo Moriwaki [Mon, 12 Jan 2015 14:13:13 +0000 (23:13 +0900)]
Follow an API change in the upstream: LogDevice
Daigo Moriwaki [Mon, 12 Jan 2015 14:06:28 +0000 (23:06 +0900)]
Get rid of a dupolicated method: test_kachi_good
Daigo Moriwaki [Mon, 24 Nov 2014 14:04:14 +0000 (23:04 +0900)]
Fixed logout in test/TC_forrk.rb
Daigo Moriwaki [Mon, 13 Oct 2014 07:19:58 +0000 (16:19 +0900)]
New feature: Zero least time per move.
New command line option: --least-time-per-move n
Daigo Moriwaki [Mon, 12 Jan 2015 11:48:51 +0000 (20:48 +0900)]
Merge branch 'wdoor-stable'
Conflicts:
changelog
Daigo Moriwaki [Sat, 27 Dec 2014 14:32:58 +0000 (23:32 +0900)]
Merge remote-tracking branch 'origin/wdoor-stable' into wdoor-stable
Conflicts:
changelog
Daigo Moriwaki [Sat, 27 Dec 2014 14:31:20 +0000 (23:31 +0900)]
* [mk_html] Corrected a url.
Daigo Moriwaki [Sat, 27 Dec 2014 13:10:00 +0000 (22:10 +0900)]
* [shogi-server] When a non-rated player participates in Floodgate, the following exception was thrown and a Floodgate game would not start:
undefined method `[]' for nil:NilClass
["/home/shogi-server/www/x/shogi_server/pairing.rb:499:in `block
in calculate_diff_with_penalty'"
This issue has been resolved. Only players who have player ID
(i.e. those who log in with valid password) are now allowed to
participate in Floodgate as the spec web page
[http://shogi-server.sourceforge.jp/rating.html] describes.
Daigo Moriwaki [Tue, 23 Dec 2014 08:35:04 +0000 (17:35 +0900)]
[shogi-server] Addressed Ruby incompatibility on ShogiServer::Usi::alphabetToDan.
It (and usiToCsa.rb) did not work with Ruby 1.9.3. This issue has now been fixed.
Thanks to Hiraoka-san for debugging.
Daigo Moriwaki [Thu, 18 Dec 2014 10:23:35 +0000 (19:23 +0900)]
utils/eval_graph.rb: Gnuplot 4.6.6 drew evaluation-value lines with a dashed style. This issue has now been addressed so that solid lines are used.
Daigo Moriwaki [Sat, 13 Dec 2014 07:28:41 +0000 (16:28 +0900)]
Merge remote-tracking branch 'origin/wdoor-stable'
Conflicts:
changelog
Daigo Moriwaki [Mon, 24 Nov 2014 14:04:14 +0000 (23:04 +0900)]
Fixed logout in test/TC_forrk.rb
Daigo Moriwaki [Mon, 24 Nov 2014 14:03:29 +0000 (23:03 +0900)]
[shogi-server] Addressed a warning of duplicated range in a regular expression.
Daigo Moriwaki [Mon, 24 Nov 2014 12:33:47 +0000 (21:33 +0900)]
Ruby 2.0.0 or later is recommended to use with shogi-server since Ruby 1.8 reached its End-of-Life on the end of July, 2014.
Daigo Moriwaki [Mon, 13 Oct 2014 10:15:50 +0000 (19:15 +0900)]
Record files now include rating scores of players.
Daigo Moriwaki [Mon, 13 Oct 2014 09:43:25 +0000 (18:43 +0900)]
Merge branch 'wdoor-stable'
Conflicts:
changelog
Daigo Moriwaki [Mon, 13 Oct 2014 09:38:06 +0000 (18:38 +0900)]
Merge branch '201410-StalledPlayer'
Daigo Moriwaki [Mon, 13 Oct 2014 09:35:08 +0000 (18:35 +0900)]
[shogi-server] A player, attempting to login with the current live player
stalling for more than a day, can forcibly override the current player.
Daigo Moriwaki [Sun, 12 Oct 2014 07:24:40 +0000 (16:24 +0900)]
New feature: max moves
New command line option: --max-moves n
Daigo Moriwaki [Sat, 26 Jul 2014 06:58:40 +0000 (15:58 +0900)]
Fixed an encoding issue for mk_rate
Daigo Moriwaki [Sat, 19 Jul 2014 02:49:33 +0000 (11:49 +0900)]
Cherry-pick
62ad30f 3217ea4
[mk_rate] - Added a new option, --abnormal-threshold n:
Games that end with the 'abnormal' status are counted in
win/lost games for the rating calculation if a game plays more
than n plies. Otherwise (or if n is zero), abnormal games are
counted out of rating games.
Daigo Moriwaki [Sat, 26 Jul 2014 07:01:03 +0000 (16:01 +0900)]
Merge branch '201407-abnormal'
Daigo Moriwaki [Sat, 26 Jul 2014 06:58:40 +0000 (15:58 +0900)]
Fixed an encoding issue for mk_rate
Daigo Moriwaki [Sat, 19 Jul 2014 02:49:33 +0000 (11:49 +0900)]
[mk_rate] - Added a new option, --abnormal-threshold n:
Games that end with the 'abnormal' status are counted in
win/lost games for the rating calculation if a game plays more
than n plies. Otherwise (or if n is zero), abnormal games are
counted out of rating games.
Daigo Moriwaki [Sat, 22 Feb 2014 13:03:14 +0000 (22:03 +0900)]
Corrected a merge miss in changelog caused by the previous merge
Daigo Moriwaki [Sat, 22 Feb 2014 12:54:41 +0000 (21:54 +0900)]
Merge branch '201312-usiToCsa'
Conflicts:
changelog
Daigo Moriwaki [Tue, 7 Jan 2014 00:37:32 +0000 (09:37 +0900)]
Daigo Moriwaki [Tue, 7 Jan 2014 00:35:51 +0000 (09:35 +0900)]
Updated Revision number.
Daigo Moriwaki [Sun, 29 Dec 2013 07:33:19 +0000 (16:33 +0900)]
Merge branch '201312-fix-sacrifice'
Daigo Moriwaki [Sun, 29 Dec 2013 05:21:11 +0000 (14:21 +0900)]
Corrected load path
Daigo Moriwaki [Sun, 29 Dec 2013 04:56:32 +0000 (13:56 +0900)]
Fix to read parameters in configuration files
Daigo Moriwaki [Thu, 26 Dec 2013 14:52:35 +0000 (23:52 +0900)]
[shogi-server] - Previously, parameters in Floodgate time configuration file were not applied to actual instances. This issue has been fixed.
Daigo Moriwaki [Sat, 21 Dec 2013 08:53:33 +0000 (17:53 +0900)]
Merge branch 'wdoor-stable'
Daigo Moriwaki [Sat, 21 Dec 2013 08:52:52 +0000 (17:52 +0900)]
Merge branch '201312-KinPenalty' into wdoor-stable
Daigo Moriwaki [Sat, 21 Dec 2013 08:47:13 +0000 (17:47 +0900)]
[shogi-server] - shogi_server/pairing.rb: Impose penalty on matches between likely kin players.
Daigo Moriwaki [Tue, 17 Dec 2013 13:46:22 +0000 (22:46 +0900)]
Fixed issues on usiToCsa.rb.
- Corrected type of TORYO
- Corrected keep alive packet
Daigo Moriwaki [Sat, 14 Dec 2013 12:31:08 +0000 (21:31 +0900)]
* [usiToCsa] - Added a new program, which is a bridge for a USI engine to connect to the Shogi-server.