Table of Contents

Class Group

Namespace
WeiqiSharp.Core.Agents
Assembly
WeiqiSharp.Core.dll

Represents a group of stones on the board, and tracks their liberties.

public record Group : IEquatable<Group>
Inheritance
Group
Implements
Inherited Members

Constructors

Group(HashSet<(int column, int row)>, HashSet<(int column, int row)>)

Represents a group of stones on the board, and tracks their liberties.

public Group(HashSet<(int column, int row)> Members, HashSet<(int column, int row)> Liberties)

Parameters

Members HashSet<(int x, int y)>
Liberties HashSet<(int x, int y)>

Properties

Liberties

public HashSet<(int column, int row)> Liberties { get; init; }

Property Value

HashSet<(int x, int y)>

Members

public HashSet<(int column, int row)> Members { get; init; }

Property Value

HashSet<(int x, int y)>

NumLiberties

public int NumLiberties { get; }

Property Value

int

NumStones

public int NumStones { get; }

Property Value

int