Class ChessUtilities
A static class containing helper methods.
Inheritance
System.Object
ChessUtilities
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ChessSharp
Assembly: ChessSharp.dll
Syntax
public static class ChessUtilities
Methods
| Improve this Doc View SourceGetValidMoves(GameBoard)
Gets the valid moves of the given GameBoard.
Declaration
public static List<Move> GetValidMoves(GameBoard board)
Parameters
Type | Name | Description |
---|---|---|
GameBoard | board | The GameBoard that you want to get its valid moves. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Move> | Returns a list of the valid moves. |
GetValidMovesOfSourceSquare(Square, GameBoard)
Declaration
public static List<Move> GetValidMovesOfSourceSquare(Square source, GameBoard board)
Parameters
Type | Name | Description |
---|---|---|
Square | source | The source Square that you're looking for its valid moves. |
GameBoard | board | The GameBoard that you want to get its valid moves from the specified square. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Move> | Returns a list of the valid moves that has the given source square. |