# Go Score Counter (SGF) > Counts a finished Go game from its SGF: area or territory scoring, dead stones, komi and the result. 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. Part of usefulweb.app (https://usefulweb.app/). Part of [Playcards](https://playcards.usefulweb.app/) (ownerApp: playcards). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://playcardsgoscore.usefulweb.app/ (interactive tool at https://playcardsgoscore.usefulweb.app/tool) - JSON API: POST https://playcardsgoscore.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://playcardsgoscore.usefulweb.app/api/v1/tool) - OpenAPI: https://playcardsgoscore.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://playcardsgoscore.usefulweb.app/mcp - tool `playcards_go_score` ## Inputs - sgf (textarea): SGF game - A Go game in SGF: (;GM[1]SZ[9]KM[7.5];B[ee];W[gc]…). Only the main line is read. Setup stones (AB/AW) count as part of the position. - deadFrom (select): Dead stones - deadStones (text): Dead stones (optional) - Points like D4 (A1 = bottom left, no letter I) or SGF pairs like dd. One stone marks its whole chain as dead. - rules (select): Scoring - komi (text): Komi (optional) - Points for White. Empty: the KM property, else 7.5 (area) or 6.5 (territory). ## Method - 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.