ColorShapeLinks
An assignment for the AI course unit of the Bachelor in Videogames at Lusófona University
Move Struct Reference

Represents a move already performed. More...

Collaboration diagram for Move:
Collaboration graph

Public Member Functions

 Move (int row, int col, Piece piece)
 Create a move. More...
 

Public Attributes

readonly int row
 Board row where the piece was placed. More...
 
readonly int col
 Board column where the piece was placed. More...
 
readonly Piece piece
 Piece used for the move. More...
 

Detailed Description

Represents a move already performed.

Definition at line 9 of file Move.cs.

Constructor & Destructor Documentation

◆ Move()

Move ( int  row,
int  col,
Piece  piece 
)
inline

Create a move.

Parameters
rowBoard row where the piece was placed.
colBoard column where the piece was placed.
piecePiece used for the move.

Definition at line 24 of file Move.cs.

Member Data Documentation

◆ col

readonly int col

Board column where the piece was placed.

Definition at line 15 of file Move.cs.

◆ piece

readonly Piece piece

Piece used for the move.

Definition at line 18 of file Move.cs.

◆ row

readonly int row

Board row where the piece was placed.

Definition at line 12 of file Move.cs.


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