Go Liberty Count Capture Check

Compute orthogonally connected observed Go group and distinct liberties on up to 19×19 board; atari/capture candidates only, no move, suicide, ko/superko or full history legality.

Description

A Go group connects stones orthogonally and shares distinct adjacent empty liberties.

A Go group connects stones orthogonally and shares distinct adjacent empty liberties. One liberty indicates atari.1

Enter a nonempty rectangular board through 19×19 with 0 empty,1 black,2 white, and a valid selected stone coordinate. Return sorted row-major group/liberty coordinates and flags for exactly one or zero liberties.

When to use Go Liberty Count Capture Check

Use Go Liberty Count Capture Check when you need to evaluate the supplied records under the calculation and evidence rules below. No ko, move legality, suicide rule or territory scoring is determined.

Prepare the supplied game state, observations and explicit variant settings. Follow the card, board, coordinate and state conventions in the calculation rules.

How to use Go Liberty Count Capture Check and understand its results

  1. Prepare the supplied game state, observations and explicit variant settings. Follow the card, board, coordinate and state conventions in the calculation rules.
  2. Enter goBoard, selectedRow, selectedColumn using the field table and calculation rules, then run the tool.
  3. Read connectedGroupCells, distinctLibertyCells, libertyCount, inAtari, noLibertiesCaptureCandidate. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
Input fieldMeaningValue type; see rules belowRequirement
goBoardGo boardlist of list of numberRequired
selectedRowSelected rownumberRequired
selectedColumnSelected columnnumberRequired

Enter a nonempty rectangular board through 19×19 with 0 empty,1 black,2 white, and a valid selected stone coordinate. Return sorted row-major group/liberty coordinates and flags for exactly one or zero liberties.

group=BFS same-color orthogonal neighbors; liberties=distinct adjacent zeros

Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.

Output fieldMeaningValue type
connectedGroupCellsConnected group cellslist of list of number
distinctLibertyCellsDistinct liberty cellslist of list of number
libertyCountLiberty countnumber
inAtariIn atariboolean
noLibertiesCaptureCandidateNo liberties capture candidateboolean
json
{
  "input": {
    "goBoard": [
      [
        0,
        2,
        0
      ],
      [
        2,
        1,
        0
      ],
      [
        0,
        0,
        0
      ]
    ],
    "selectedRow": 1,
    "selectedColumn": 1
  },
  "output": {
    "connectedGroupCells": [
      [
        1,
        1
      ]
    ],
    "distinctLibertyCells": [
      [
        1,
        2
      ],
      [
        2,
        1
      ]
    ],
    "libertyCount": 2,
    "inAtari": false,
    "noLibertiesCaptureCandidate": false
  }
}

Limitations and assumptions

No ko, move legality, suicide rule or territory scoring is determined.

Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Matrices are limited to 128 rows and 128 entries per row. Numeric lists are limited to 10,000 entries; string lists to 128 strings of at most 128 characters each. The rules above may impose smaller limits. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors. A successfully returned false flag is an evaluated outcome; its meaning is explained above.

Alternative or Complementary methods

Use Checkers Forced Jump Rule Check: Short-king checkers uses diagonal captures and a mandatory-capture gate. Men move toward increasing or decreasing rows according to side sign. For a complementary task, use Minesweeper Neighbor Mine Count (8-Neighbors): Minesweeper clues count mines in eight neighboring cells. The center cell is never part of its own count.

References

  1. Go Liberty Count Capture Check — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies