Skip to content

Capture logic is incorrect when chains are involved #10

@blahedo

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 .

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