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
Properties
Liberties
public HashSet<(int column, int row)> Liberties { get; init; }
Property Value
Members
public HashSet<(int column, int row)> Members { get; init; }
Property Value
NumLiberties
public int NumLiberties { get; }
Property Value
NumStones
public int NumStones { get; }