Skip to content

Capture logic is incorrect when chains are involved #10

Description

@blahedo

When a user places a stone in the last empty intersection adjacent to a stone of the opposite colour, that stone is captured even if it's part of a chain that still has liberties. In this board the white chain at B8-C8 has, collectively, four liberties:

chakra-bad-capture-1

But after a single black placement at A8, the white stone at B8 is captured:

chakra-bad-capture-2

This is in game # 5797941e3a0ac6306cd86c11 .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions