Table of Contents

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

Column int

The column of the move.

Row int

The row of the move.

Color SpaceState

The color of the player making the move.

Pass bool

Whether 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

SpaceState

Column

The column of the move.

public int Column { readonly get; set; }

Property Value

int

Pass

Whether this move was a passed turn.

public bool Pass { readonly get; set; }

Property Value

bool

Row

The row of the move.

public int Row { readonly get; set; }

Property Value

int