• Home
  • API documentation
Show / Hide Table of Contents
  • ChessSharp
    • ChessUtilities
    • GameBoard
    • GameState
    • Move
    • Piece
    • Player
  • ChessSharp.Pieces
    • Bishop
    • King
    • Knight
    • Pawn
    • PawnPromotion
    • Queen
    • Rook
  • ChessSharp.SquareData
    • File
    • Rank
    • Square

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 Source

GetValidMoves(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.

| Improve this Doc View Source

GetValidMovesOfSourceSquare(Square, GameBoard)

Gets the valid moves of the given GameBoard that has a specific given source Square.

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX