ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
Pos Struct Reference

Represents a board position. More...

+ Collaboration diagram for Pos:

Public Member Functions

 Pos (int row, int col)
 Creates a new board position. More...
 
override string ToString ()
 Provides a string representation of the board position in the form "(row,col)". More...
 

Public Attributes

readonly int row
 Board row. More...
 
readonly int col
 Board column. More...
 

Detailed Description

Represents a board position.

Constructor & Destructor Documentation

◆ Pos()

Pos ( int  row,
int  col 
)
inline

Creates a new board position.

Parameters
rowBoard row.
colBoard column.

Member Function Documentation

◆ ToString()

override string ToString ( )

Provides a string representation of the board position in the form "(row,col)".

Returns
A string representation of the board position.

Member Data Documentation

◆ col

readonly int col

Board column.

◆ row

readonly int row

Board row.


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