Chess Game  1.1.0
A full chess game for Unity
cgMoveSet Class Reference

Stores information about all possible moves a piece can make on a given index position on the board. More...

Public Member Functions

 cgMoveSet (List< int > movesp, int fromp, int typesp)
 Create a move set for a piece type on a specific index location. More...
 

Public Attributes

byte from = 0
 The index location on the board. More...
 
List< sbyte > moves
 All possible moves this piece can perform from this location. More...
 
sbyte type
 The piece type being whoms moves are being generated. More...
 
List< sbyte > positionalValues = new List<sbyte>()
 These values are based on the positional values stored in ValueModifiers, and these are used by the AlphaBeta Search Algorithm to optimize search time. these values are relative, meaning if I'm at a good spot, and move to mediocre spot, it will be counted as negative positional value. More...
 

Detailed Description

Stores information about all possible moves a piece can make on a given index position on the board.

Constructor & Destructor Documentation

◆ cgMoveSet()

cgMoveSet.cgMoveSet ( List< int >  movesp,
int  fromp,
int  typesp 
)

Create a move set for a piece type on a specific index location.

Parameters
movespAll possible moves
frompFrom this location
typespThe piece type

Member Data Documentation

◆ from

byte cgMoveSet.from = 0

The index location on the board.

◆ moves

List<sbyte> cgMoveSet.moves

All possible moves this piece can perform from this location.

◆ positionalValues

List<sbyte> cgMoveSet.positionalValues = new List<sbyte>()

These values are based on the positional values stored in ValueModifiers, and these are used by the AlphaBeta Search Algorithm to optimize search time. these values are relative, meaning if I'm at a good spot, and move to mediocre spot, it will be counted as negative positional value.

◆ type

sbyte cgMoveSet.type

The piece type being whoms moves are being generated.


The documentation for this class was generated from the following file: