Struct Move
- Namespace
- WeiqiSharp.Core
- Assembly
- WeiqiSharp.Core.dll
Represents a single move on the board.
public record struct Move : IEquatable<Move>
- Implements
- Inherited Members
Remarks
By convention, moves which are Pass have their coordinates set to -1, -1. This will cause the board to throw an error if it is applied directly to the board.
Constructors
Move(int, int, SpaceState, bool)
Represents a single move on the board.
public Move(int Column, int Row, SpaceState Color, bool Pass = false)
Parameters
ColumnintThe column of the move.
RowintThe row of the move.
ColorSpaceStateThe color of the player making the move.
PassboolWhether this move was a passed turn.
Remarks
By convention, moves which are Pass have their coordinates set to -1, -1. This will cause the board to throw an error if it is applied directly to the board.
Properties
Color
The color of the player making the move.
public SpaceState Color { readonly get; set; }
Property Value
Column
The column of the move.
public int Column { readonly get; set; }
Property Value
Pass
Whether this move was a passed turn.
public bool Pass { readonly get; set; }
Property Value
Row
The row of the move.
public int Row { readonly get; set; }