Go Score Counter (SGF)
Counts a finished Go game from its SGF: area or territory scoring, dead stones, komi and the result.
How it works
Paste a finished Go game as SGF (any board size up to 19×19) and the counter replays it, removes the dead stones and scores it: area scoring (stones on the board plus surrounded empty points, as in Chinese and AGA rules) or territory scoring (surrounded points plus captured stones, as in Japanese and Korean rules), with komi for White. Dead stones come from the territory marks most Go programs write into the SGF at the end of a game, from your own list, or from a rough computer estimate. You get the result in SGF form (B+3.5), the count for both sides, a picture of the final board with territory and dead stones, and the SGF with the counted territory. The Playcards Go table scores with the same engine.
- The main line of the SGF is replayed from the setup stones: captures are applied and counted per colour; an occupied point or a suicide is an error (ko is not checked, so games from rule sets with other ko rules can still be counted).
- Dead stones are removed. Every empty area (including the points of the removed stones) that touches stones of only one colour is that colour’s territory; areas that touch both colours are neutral (dame).
- Area scoring: live stones + territory. Territory scoring: territory + stones captured during play + dead stones removed at the end. White adds komi. Seki is not detected separately: empty points inside a seki touch both colours and stay neutral, as most rule sets count them.
- Territory marks (TB/TW) in an SGF are how many Go programs store the agreed end of a game: a stone standing on a point marked as the other colour’s territory is taken as dead. The computer estimate plays a few hundred quick random games from the final position and calls a stone dead when the other colour owns its point at the end of most of them — useful for clear cases, unreliable in close fights.
Sources
- SGF file format FF[4] — properties (B, W, AB, AW, KM, RU, TB, TW, RE) (Arno Hollosi, red-bean.com)
- Rules of Go — scoring systems (Sensei’s Library)
- Rules of Go — area and territory scoring (Wikipedia)
- AGA Concise Rules of Go (American Go Association)
Part of Playcards
-
Playcards Card and board games table
47 card games from Skat and Jass to Scopa and Daifugō, vs the computer, at home or online.
Related tools
- Board Game Solver – Solves Four in a Row and Kalah positions exactly: win, loss or draw and the value of every move.
- Tournament Bracket Maker – Single or double elimination or round robin: seeded brackets, byes, results and downloads.
How to use the Go score counter
Count a finished Go game from its SGF file with area or territory scoring, dead stones and komi, and get the result in the B+3.5 form.
What it is for
At the end of a Go game both players pass, agree which stones are dead and count. Counting by hand is slow and easy to get wrong. This tool takes the game as an SGF file — the format nearly every Go program and server exports — replays it, removes the dead stones and counts it for you.
It supports both scoring methods. Area scoring (Chinese and AGA rules) counts your live stones plus the empty points only you surround. Territory scoring (Japanese and Korean rules) counts the surrounded points plus every stone you captured, dead stones included. White adds komi in both.
Dead stones come from one of three places: the territory marks (TB/TW) most programs write into the SGF when a game is scored, your own list of points, or a rough computer estimate.
Worked example
The first example is a finished 9×9 position: a black wall on column E, a white wall on column F, a lone white stone at B8 in Black's area and a black stone at H2 in White's. The SGF carries territory marks, so both lone stones are taken as dead. With area scoring and komi 7.5 the result is B+1.5: Black has 9 stones and 36 points of territory (45), White 9 stones, 27 points and 7.5 komi (43.5).
Switch Scoring to territory and the totals change, but not the winner: Black 36 territory + 1 dead white stone = 37, White 27 + 1 + 7.5 = 35.5, again B+1.5.
The third example removes the marks from the file and lists the dead stones by hand as B8 H2 — same count. The fourth is a real beginner game of 106 moves under Japanese rules with captures on both sides: White wins by 41.5 points (W+41.5), with 29 captured stones counting for White.
How to read the result
- Result: in SGF form, B+ or W+ the margin, 0 for a tie (jigo).
- Count table: live stones, territory, stones captured during play, dead stones taken off at the end, komi, and the total for each colour. Area scoring adds the first two rows; territory scoring adds territory, captures and dead stones.
- Final position: the board picture shows territory as small squares in the owner's colour and dead stones faded with a cross — check it before trusting the count.
- Dead stones: listed with coordinates (A1 is bottom left, no letter I).
- SGF with the counted territory: a download of your file with the result and the territory written as TB/TW marks.
Tips and common mistakes
- If the file has no territory marks and you list nothing, every stone counts as alive — the tool warns you. Name one stone of each dead group; the whole chain is marked.
- The computer estimate plays a few hundred quick random games from the final position. It finds lone stones deep in territory but can be wrong in close fights and seki; check the picture.
- Empty points that touch both colours (dame, and the eyes of a seki) count for nobody.
- Only the main line of the SGF is counted; variations are ignored. Ko is not checked during the replay, so games from any rule set can be counted.
- An unfinished game (no two passes at the end) gives a count that can be far from the real result.
FAQ
Which rules does it use when I choose “From the SGF”?
The RU property: Japanese, Korean or territory rules switch to territory scoring; anything else, or no RU at all, uses area scoring. The komi comes from KM unless you type one.
Why can area and territory scoring differ by a point?
Area scoring also counts the stones on the board, so filling a neutral point or playing inside your own territory changes the two counts differently.
Can it count 19×19 games?
Yes, any square board from 2×2 to 19×19. The Playcards Go table itself offers 9×9 and 13×13.
Does the Playcards app use the same counting?
Yes. Playcards scores its Go games with the same engine and exports SGF files that this tool reads back, territory marks included.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://playcardsgoscore.usefulweb.app/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://playcardsgoscore.usefulweb.app/mcp· tool nameplaycards_go_score
Example request
curl -s -X POST https://playcardsgoscore.usefulweb.app/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"sgf":"(;GM[1]FF[4]SZ[9]KM[7.5]RU[Chinese]PB[Black]PW[White]RE[B+1.5]\nAB[ea][eb][ec][ed][ee][ef][eg][eh][ei][hh]\nAW[fa][fb][fc][fd][fe][ff][fg][fh][fi][bb]\nTB[aa][ab][ac][ad][ae][af][ag][ah][ai][ba][bb][bc][bd][be][bf][bg][bh][bi][ca][cb][cc][cd][ce][cf][cg][ch][ci][da][db][dc][dd][de][df][dg][dh][di]\nTW[ga][gb][gc][gd][ge][gf][gg][gh][gi][ha][hb][hc][hd][he][hf][hg][hh][hi][ia][ib][ic][id][ie][if][ig][ih][ii])"}'