FA-82958 / Go territory scoring / Member archive
Even handicaps get a centre stone · case 03
Six- and eight-stone handicaps receive tengen as an extra stone.
Case contract
Input [size, count]. Star line e = 2 (0-based) below 13x13 else 3; f = size-1-e; mid = size//2. Counts outside 2..9 give []. Even boards allow at most 4. Order: [e,f],[f,e],[f,f],[e,e]; counts 6-9 add [mid,e],[mid,f]; 8-9 add [e,mid],[f,mid]; odd counts from 5 add the centre last.
Why this case matters
Go servers and scoring tools compute this value automatically; a wrong answer changes a game result.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| handicap placement case 6 | [[3, 9], [9, 3], [9, 9], [3, 3], [6, 3], [6, 9], [6, 6]] | [[3, 9], [9, 3], [9, 9], [3, 3], [6, 3], [6, 9]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗