Rules of the World Computer Shogi Championship
Computer Shogi Association
Last updated 2011.12.18
Section 1 Definitions
Article 1 (Definitions)
- The CSA: The Computer Shogi Association
- The championship: The World Computer Shogi Championship
- Officers: Tournament administrators selected by the CSA
- Referees: Tournament referees selected by the CSA
- A game: Each game of the championship
- Preliminary contest/the final: All games on a particular day
- The championship server: The LAN server for the championship that is under the CSA server protocol, ver. 1.1.3, provided by the CSA
- Entered programs: Programs that enter the championship
- Move-generating part: The move-generating component of the program/the move-generating hardware
- Interface part: The complement of the move-generating component of the program, such as communication, display of the board position, and display of the total time spent
- CSA module library: CSA-authorized shogi-specific program module library
- Opening data: A part of the move-generating component/the move-generating hardware. Database of board positions, a full or partial list of the consecutive moves to the positions, moves which should or should not be played, and a full or partial list of the values of the moves
- Learning part: The learning component of the program that tunes the parameters of the evaluation function for move-generating by automated learning
- Thinking part: The part of the move-generating component of the entered program that excludes the CSA module library/modified library
- Program developer: Developer of the thinking part of the entered program
- The entrant: The team leader of the entered program
- The machine: The computer(s) and peripherals on which the entered program runs
Article 2 (Purpose of the rules)
These rules define eligibility for the championship and the procedures for the preliminary contest and final, as well as those for each game.
Section 2 Eligibility
Article 3 (The thinking part)
- The thinking part of the entered program must be created through the entrant's own ingenuity.
- A team member may enter for only one team.
Article 4 (CSA module library)
- An entrant may use the CSA module libraries for his/her program.
- The entrant may modify and use the modules. This case is treated as an entrant using the library. The entrant is not required to disclose the modified modules.
- If the entrant uses the CSA module libraries, he/she must request and receive permission from an officer.
Article 5 (Required features)
An entered program must have the following features:
- Be able to start and/or resume at any point and with any total time spent.
- Be able to quit at any point.
- Display the current board position, pieces in hand, and the turn. It is acceptable to display this information in text.
- Measure the time spent on each individual move and display the total time spent under Article 22.
- Record the moves and the time spent on each move showing the recorded moves and the time spent on each move when quitting the game.
- Be able to play through a LAN server under the CSA server protocol 1.1.3.
- Be able to enter an opponent's move manually (without LAN).
Article 6 (Suggested features)
An entered program should have the following features:
- Be able to find perpetual moves.
- Display the sending/receiving character string through LAN if needed.
- Start/continue the game for any position, turn, time-spent through LAN.
Article 7 (Computer hardware)
- The entered program may use any number of computers and any peripherals as the machine.
- Each machine must be prepared by the entrant.
- The power of the machine at the venue must be 1000 watts or less.
- The noise level of the machine at the venue must be 70dBs or less.
- The machine must be brought into and set up at the venue as part of the responsibility of the entrant.
- After the setting up has been done, the machine must complete the game without any interference from humans, except for quitting or entering an opponent's move when playing manually (only as directed by the officers).
- If the machine cannot satisfy clauses 3, 4, 5, or 6, the entrant must request and receive permission from an officer.
Section 3 Application
Article 8 (Application to enter the championship)
- The entrant must complete an application to enter the championship within the period declared by the CSA.
- When applying the program, the entrant must disclose the team leader's full name together with all the full names of the developers and possible developers through the web page indicated by the officers for the application to enter the championship. The CSA will disclose the leader's full name, together with all the names of the developers and possible developers.
- The entrant must be approved by all of the developers and possible developers to enter the championship. If the CSA has a question about whether the entrant is approved by the developers to enter the championship, it may consult each developer directly.
- If any name is included in lists associated with two or more programs, the CSA will confirm that the individuals are different people. If the CSA finds that a person has entered two or more programs, it will ask for rectification. If such rectification is not acceptable to the entrant, the CSA will disqualify that person and delete the seeding for future championships.
- The entrant must pay the registration fee announced by the CSA before the deadline for payment. Payment in cash will be accepted at the tournament itself if the entrant lives outside Japan.
- The entrant must disclose the information of the program that the CSA specifies by the specified date. Specified information will include the processors, memory, and CSA libraries used.
- The entrant must submit documents to the CSA by the date specified, showing that the entered program satisfies Clause 1 of Article 3.
- The CSA will not refund any fees if the entrant later declines for his/her own reasons to participate in the championship.
Article 9 (Restriction of power and/or noise)
- If multiple machines are used at the venue, the power of the machine exceeds 1000 watts, or the noise level exceeds 70dBs, the entrants must report to the officers before April 1 of the championship year.
- If the CSA considers that it is difficult for that machine to enter the venue, it will relocate the machine, and may require remote participation (see Article 10, Clause 1).
Article 10 (Remote participation)
- An entrant may place a machine (that does not have to communicate with the CSA LAN server) outside the venue (such a machine being called a 'remote machine' and this style of participation being referred to as 'remote participation'), if any of the following is satisfied:
- The entrant requests and receives permission from the CSA at least one day before the first day of the tournament.
- The CSA makes a request following Article 9, Clause 2.
- With remote participation, the entrant must prepare an extra communication machine between the CSA LAN server and the remote machine and bring the communication machine to the venue (such a machine is referred to as a 'machine in venue'). The machine in venue must have all the features described in Article 5.
- Sending to/receiving from the remote machine is on the machine in venue and must not be done manually. The connection and reconnection of communication to the remote machine may be done manually.
- The entrant must be in possession of the thinking report (or, at least, the moves with the time spent).
- The entrants take responsibility for communication risks between the remote machine and the machine in venue.
- The CSA makes an effort to minimize the communication risks in Clause 5 of this Article, but will not accept any form of responsibility.
Article 11 (Front machine)
- An entrant may put in place a machine which covers all or part of the interface part (such a machine being called a 'front machine'), and communicate the move manually between the machine which covers the generating part (such a machine being called a 'move-generating machine') and the front machine, if one of the following conditions is satisfied:
- The entrant makes a request before April 1 of the championship year to an officer and receives permission from the CSA because the machine has one or more special features.
- The entrant reports the lack of a function under Article 5, but the CSA permits him/her to enter.
- The entrant is responsible for bringing into the venue and setting up the front machine and the move-generating machine.
Article 12 (Successor to a program)
- The leader of an entered program may declare that the program is the successor to any program that was made by the same team or a part of the same team of any previous championship.
- The leader of an entered program may declare that the program is not the successor to any program that was made by the same team or a part of the same team of any previous championship.
- The declaration in Clauses 1 and 2 of this Article must be made before April 1 of the championship year.
- If the developers of the same team of any previous championship are members of different teams in the championship, only one program can be declared as the successor; the other programs will be treated as newcomers. The declaration of which program is a successor is made by the leader of the program. If more than one program is declared as a successor, then the CSA will arbitrate.
- If the leader does not declare the predecessor of the program as shown in Clause 3, then the CSA will decide which is the predecessor of the program, or the program will be treated as a newcomer. In this case, the program is usually treated as the successor to a program where the intersection of the members of the program and the members of the predecessor is not empty.
Article 13 (Program eligibility)
- If the program does not satisfy eligibility as defined in Section 2 or the entrant fails to make the application defined in Section 3, the CSA will forbid the program to enter the championship.
- Clause 1 of this article is not applicable to a program not using CSA library modules that does not conform with the procedure under Clause 7 of Article 8, but the program will lose the qualification to proceed to the next stage as described in Clause 5 of Article 17.
- The final decision on whether a program may or may not enter the championship is the exclusive prerogative of the CSA.
- The CSA may request the source codes of the entered program to decide whether the program may or may not enter the championship.
Article 14 (Approval and confirmation procedures)
- The entrant must show the officer all the developers' names of all the versions of the program and all CSA module libraries used before the announcement of the result on each day of the championship. The CSA will disclose all of the developers' names and all of the CSA module libraries.
- The entrant must show the officer the information that the CSA specified of the machines and all versions of the program before the announcement of the results on each day of the championship.
- If the entrant fails to show the information in Clauses 1 and 2 of this article, the CSA will disqualify the program and delete the seeding from future championships.
- The entrant must be approved by all of the developers for entry into the championship. If the CSA has a question about whether the entrant is approved by the developers to enter the championship, it may consult each developer directly.
- If any name is included in lists associated with two or more programs, the CSA will confirm that the individuals are different people. If the CSA finds that a person has entered two or more programs, it will disqualify that program and delete the seeding from future championships.
Section 4 (Tournament procedure)
Article 15 (Seeding order)
- The seeding order of the entered programs is decided as follows:
- The result of the final of the previous championship
- The result of the second preliminary contest of the previous championship (finalists are exempted)
- The result of the first preliminary contest of the previous championship (qualifiers of the second preliminary contests are exempted)
- The result of the second previous championship
- The result of the third previous championship, and so on
- Newcomers (order determined by drawing)
- The drawing for Item 6 of Clause 1 of this Article will be conducted straight after the deadline for registration on the day of the first preliminary contest expires, i.e., straight after the final decision on the entrants for the first day is made.
Article 16 (Treatment of the seeds)
- There are first and second preliminary contests and then a final in this tournament.
- Under the previous article, the top sixteen (16) entered programs are seeded for the second preliminary contest. The other entered programs enter the first preliminary contest.
- The second preliminary contest seeded programs are decided at the end of March of the championship year, after being accepted for the championship by the CSA and not being treated as an 'unentered program' (these cases occur when applicants withdraw and/or the CSA refuses entry for some reason); such programs are called 'planning-to-enter programs.'
Article 17 (Procedure for the preliminary contests and the final)
- In the first preliminary contest, all entrants other than the second preliminary contest seeded programs enter. There are seven rounds. The top eight programs qualify for the second preliminary contest.
- In the second preliminary contest, twenty-four (24) programs that consist of second preliminary contest seeded programs and the qualifying programs of the first preliminary contest enter. There are nine rounds. The top eight programs qualify for the final.
- In the final, eight programs that consist of the qualifying programs from the second preliminary contest enter. There are seven rounds.
- If the programs use CSA modules developed by someone other than the entrant, the maximum number of the qualifiers is restricted: Both the maximum number of the qualifiers to the second preliminary contest and the maximum number of the qualifiers to the final are two each for one module. If the number exceeds the maximum number of the qualifiers, then the runners-up will qualify to proceed to the next stage.
- A program about which the entrant does not disclose the information defined in Clause 7 of Article 8 does not qualify and the runner-up will qualify to proceed to the next stage.
- In the first and second preliminary contests, the CSA will ask whether the qualifier wishes to enter the next day. If the entrant quits or it is impossible to make sure that the entrant will enter the next day, the qualifying position will go to the next program.
- In the first and second preliminary contests, the total number of games may be less than the numbers above according to circumstance.
- After the end of March of the championship year and before the announcement of the results of the first preliminary contest by the CSA, if there are any unentered second preliminary contest seeded programs, the CSA will not admit any program to the second preliminary contest as a seeded program and permit the number of the qualified programs to increase.
- The procedures of Clauses 1, 2, and 3 apply if the number of programs planning to enter is between 25 and 64 (on the last day of March of the championship year). If the number of programs planning to enter is less than 25, there will be no first preliminary contest. If the number is greater than 64, the CSA will increase the number of programs that are seeded for the second preliminary contest and of the qualified programs, one for each five teams. In this case, if the number of the entered programs decreases to 64 or less, the CSA will not decrease their number.
- If the number in the first or the second preliminary contest is odd (the number is fixed when the entrants come to the venue or communicate with an officer before the assembly time), the CSA will invite an arbitrary program (such a program is called an 'invited program') to enter the contest. The invited program will not qualify. If it achieves a qualifying position, that position will go to a regular program.
- The invited program is exempted from Article 3 and 8.
Article 18 (Treatment of late/refused programs)
- If an applicant declines to enter the championship, the applicant must contact the officers before the following deadlines: Second preliminary contest seed applicants should contact the officers before the announcement of the first preliminary contest. Others should contact the officers before the assembly time of the first preliminary contest.
- If there is a possibility that an entrant may arrive later than the assembly time, he/she must inform the officers of this before the assembly time.
- In the first and second preliminary contests, if an entrant does not register or contact the officers before the assembly time to decline to enter or say that he/she will be late, then the entrant will be considered as having given up the program and may not enter the games on that day or afterwards.
- In the final, even if an entrant does not register or contact the officers before the assembly time to decline to enter or report that he/she will be late, the entrant may enter the games after registration if ready to play.
- In the case of any entrant who has given up, who contacts the officers too late to decline to enter, or who fails to contact the officers about being late, the CSA will give such an entrant a warning and/or restrict that entrant from entering subsequent championships. However, such penalty will not apply if the CSA judges that circumstances were beyond the entrant's control (e.g., traffic accident or sudden illness).
- An entrant may give up the games if the entrant declares a wish to do so to the officers and the CSA accepts the declaration. In this case, the results of the game and the succeeding games of the team are loss by default.
Article 19 (Swiss pairing method)
- The perfect Swiss pairing method is defined as the following:
- In each round, there is one win point for a win, a half-win point for a draw, and zero win points for a loss, these to be combined with the win points of the preceding rounds. Entrants who have the same win points are paired where possible. If it is the first round, all entrants have zero win points to start with.
- If pairing fails on the rule above (if, for instance, the number of entrants with the same points is odd), then entrants who have nearly equal win points will be paired.
- The same opponents are not paired twice.
- The modified Swiss (accelerated Swiss) pairing method is like the perfect Swiss pairing method. In each round, the win points of the preceding rounds except for the previous round are totaled.
- In the preliminary contest, the pairing is decided according to the following:
- By the perfect Swiss pairing method for the first round.
- By the perfect Swiss pairing method, supposing the higher seeded teams win, for the second round.
- By the modified Swiss pairing method for the third round.
- By the perfect Swiss pairing method for the fourth round and thereafter.
- The pairings and the first player for each game are decided by a pairing system provided by an officer. If the pairing system does not decide the pairing, the officer will decide.
- The round robin method is applied to the final. All orders of games and first players of all games are decided by an officer before the first round begins.
Article 20 (Championship results)
The championship results are determined by the following rules, in the order given, where a draw is treated as a half win and a half loss (or a half-win point):
- Number of win points
- Sum of all opponents' win points
- Sum of all defeated opponents' win points
- Sum of all defeated opponents' win points, except the top and the bottom
- Results of head-to-head competition; number of wins minus number of losses, taking into account only those games involving the player whose results are the same after 1 to 4 above
- Order of seeding (for seeded teams) or position in a preliminary contest (for the others)
Section 5 (Game process)
Article 21 (Process)
- All games are played without handicap.
- Each starting time is announced by the officers at least ten minutes before the start of play.
- All games are conducted through the championship server.
- The message announcing the start of each game is given by the championship server. If the championship server is not available, then a referee will give a sign to start the game, but if both players agree, they may start earlier than the referee's signal.
- If it is impossible to start the game at the planned starting time, the difference between the planned starting time and the actual starting time will be subtracted from the playing time of the side for which starting on time was not possible. If it is impossible for both sides to start the game, the time difference will be subtracted from both sides.
- If the championship server is not available, then play will be conducted manually.
- After each game has started, no person may act in a way that affects the generation of any move.
- The following procedure must be carried out by the leader of the program or the developer. (If the entrant makes a request to the officers before the planned starting time of the game and the CSA permits another person to act (such a person being called an 'agent'), the agent may carry out the procedure.)
- Start the entered program and establish communication with the CSA LAN server.
- Enter an opponent's move when proceeding manually.
- Quit the program when a referee requests.
- Re-establish communication between the machine in venue and the remote machine when remote participation is in operation.
- Carry out communications manually between the front machine and the move-generating machine.
- If a game is aborted as a result of some accident after the start, a referee may order the game to be played or replayed manually at that point, or, in certain cases, a couple of moves before that point.
- An entrant must not change the source program, or recompile or modify parameters manually for a specific opponent, during a game. However, an entrant may freely change the source program, and recompile and modify parameters, for a specific opponent before or between games.
Article 22 (Time spent)
- The time spent is counted in seconds. The minimum time spent for each move is one second, i.e., if the time spent on a move is one second or less then the program must count it as one second. If the time spent on a move is more than one second, then the program must count in whole seconds, rounding fractions down if desired.
- The total time spent is the sum of time spent.
- Each program is allowed a total of twenty-five (25) minutes of playing time. If one side runs out of time before it wins or declares to win, then it loses the game, even if it mates on the move made when the total time spent is greater than or equal to the time limit.
- The CSA may reduce the time limit depending on championship procedures.
- When playing through the championship server, the server counts the time spent for each move and manages the total time spent. The time spent for a move is measured between the sending of the opponent's last move (or the server's initial order to start the game) and receiving the reply. The delay time is included in the time spent.
- When playing manually, the time spent is counted according to the time spent as counted by the program.
- When playing manually and by remote participation, time spent is counted on the machine in venue. The time spent includes the communication time and the reconnection time (for communication breaks).
- When playing manually and using a front machine, time spent is counted on the front machine. The time spent includes the communication time between the front machine and the move-generating machine.
- If there is any impropriety during measuring or displaying the time spent, referees will decide on an appropriate course of action.
Article 23 (Declaration of a win)
- The program may declare a win (such a declaration being called 'declaration of a win') if the position satisfies all of the following conditions. If the position does not satisfy one or more conditions, then the declaring side loses:
- It is the declaring side's turn.
- The King of the declaring side is in the third rank or beyond.
- The declaring side has 28 (the first player) or 27 (the second player) piece points or more. Piece points are counted only for pieces of the declaring side that are in hand or in the third rank or beyond. Piece points are counted as follows: King: 0; Rook, Bishop, Promoted Rook, or Promoted Bishop: 5; Other: 1.
- The declaring side has 10 or more pieces other than the King in the third rank or beyond.
- There is no check on the King of the declaring side.
- The declaring side has at least one second left.
- The program must display the declaration on the monitor and send an "@KACHI" command.
Article 24 (Outcome of the game)
- The outcome of a game is determined by the following rules, in the order given:
- The decision of the leader of the team, the program developer, or an agent to resign. Resignation is established when the referee accepts the resignation on the resigner's turn.
- A decision by a referee.
- A decision by the championship server.
- A resignation by the program when playing manually.
- After deciding the outcome, the entrants must report the outcome to the officers as soon as possible.
- The reported outcome is announced to the officers at the designated place. The outcome is fixed when the CSA announces the pairing or (for the last game) the CSA announces the results of each day. After such time results cannot be changed, even if errors are subsequently found.
Article 25 (Outcome of the game by referees)
- The referees may decide which program loses when the following conditions occur (except when both sides satisfy the conditions):
- There are no legal moves left.
- Total time spent has reached the time limit.
- There has been one or more illegal moves.
- The opponent legally declares a win.
- The declaration of a win has been unsatisfactory.
- There has been illegal communication when playing through the LAN (where illegality results from not following the CSA server protocol ver.1.1.3).
- It is impossible to input/output a move as a result of a program stopping for any reason, such as problems with communication or the operating system, after the start of thinking about the fifth move. But the referee will not decide which program loses if the program stops after an illegal character string has been sent, displayed, and kept in the display after the program stops.
- It is impossible to resume smoothly when a referee orders as such at any point (position, turn, time spent).
- A referee decides that the entrant has made an illegal action.
- The position of perpetual repetition is a draw, except that if one side's moves are checks only then that side loses the game. Perpetual repetition is decided by the championship server if the game is under LAN. It is decided by the perpetual repetition decision program prepared by the officers after being declared to the officers by referees, leaders of the teams, program developers, or agents.
- The referees will decide on an appropriate course of action when a LAN cable causes trouble and/or there is an accidental power shutoff.
- The referees will decide the outcome (including a draw) even during a game in order to allow the tournament to proceed if the tournament procedure does not go as planned.
- The referees will decide the outcome (a win, a loss, a draw), replaying from the start or resuming from a certain position.
Article 26 (Game record)
- The CSA may publish any game record at any time.
- Entrants must bring the game record to the CSA immediately after the game if the game is played manually. A USB flash memory should be used.
- The file format for the game record (defined in the second clause) must be the CSA standard game record file format.
- In the file of the game record (defined in the second clause), the entrant must record each amount of time spent.
Section 6 Program-keeping and appeals
Article 27 (Program-keeping period and appeals)
- The entrant must keep the complete reproduction set for the championship (such a set is called a 'program for the championship') for one year from the last day of the championship. This set must include all of the versions of the executable program, data, all of the versions of the source codes that generate the executable programs, and so on, that entered the championship.
- For an entered program, if there is an appeal that the program does not satisfy one or more conditions of entry, the CSA may accept the appeal and the committee will examine the situation.
- In the case of Clause 2, the entrant will be required to show the set. The committee may examine a remote machine if remote participation is involved.
- If the set is not shown, or the committee decides that the appeal is justified, and that the program does not satisfy one or more conditions of entry to the championship, the CSA may remove the seed and/or restrict entry in subsequent tournaments.
- Appeals must be made within six months of the last day of the tournament.
Additional clauses
- These rules are valid from December **, 2011.
- The rules and regulations are available in both Japanese and English. In all questions of interpretation, the Japanese version shall be regarded as authoritative.