The Go rule "No Suicide" needs to be implemented. This rule prevents a player from placing a stone in a position where it has no liberties (i.e., it would immediately be captured).
Details
Implementation Strategy:
Before placing a stone, check if the stone would have any liberties.
If the stone would have no liberties, prevent the move from being made.
Summary
The Go rule "No Suicide" needs to be implemented. This rule prevents a player from placing a stone in a position where it has no liberties (i.e., it would immediately be captured).
Details