Skip to content

Commit

Permalink
Merge pull request #144 from dexonsmith/ing-score-handicap
Browse files Browse the repository at this point in the history
Add the area handicap scoring bonus in Ing rules
  • Loading branch information
anoek authored Jun 14, 2024
2 parents 49ae40a + 5b754a7 commit 810355f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/GoEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,24 @@ export class GoEngine extends EventEmitter<Events> {
defaults.superko_algorithm = "ing";
defaults.free_handicap_placement = true;
defaults.allow_self_capture = true;

// https://www.cs.cmu.edu/~wjh/go/rules/KSS.html
//
// 2. Playing the game:
//
// Counting:
//
// 5. In handicap games of N-stone handicap, White must
// receive N-point compensation to make the result
// equivalent to territory counting. [...] In handicap
// games, White wins ties.
//
// Note that Black giving compensation in handicap games is not
// found in any official documentation of the Ing rules. AGA
// President Phil Straus has requested this convention so that
// territory and area counting can give the same result in
// handicap games.
defaults.score_handicap = true;
break;

case "nz":
Expand Down

0 comments on commit 810355f

Please sign in to comment.