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

Represents a move to be performed in the future. More...

+ Collaboration diagram for FutureMove:

Public Member Functions

 FutureMove (int column, PShape shape)
 Create a future move. More...
 
override string ToString ()
 Provides a string representation of the future move in the form "<round|square> piece at column <col>". More...
 

Public Attributes

readonly int column
 The column where to drop the piece. More...
 
readonly PShape shape
 The piece to use in the move. More...
 

Properties

static FutureMove NoMove [get]
 Represent a "no move" decision, when an AI is unable to decide which move to perform. More...
 
bool IsNoMove [get]
 Is this move a NoMove? More...
 

Detailed Description

Represents a move to be performed in the future.

Constructor & Destructor Documentation

◆ FutureMove()

FutureMove ( int  column,
PShape  shape 
)
inline

Create a future move.

Parameters
columnThe column where to drop the piece.
shapeThe piece to use in the move.

Member Function Documentation

◆ ToString()

override string ToString ( )

Provides a string representation of the future move in the form "<round|square> piece at column <col>".

Returns
A string representation of the future move.

Member Data Documentation

◆ column

readonly int column

The column where to drop the piece.

◆ shape

readonly PShape shape

The piece to use in the move.

Property Documentation

◆ IsNoMove

bool IsNoMove
get

Is this move a NoMove?

true if this is a NoMove, false otherwise.

◆ NoMove

FutureMove NoMove
staticget

Represent a "no move" decision, when an AI is unable to decide which move to perform.

A "no move" decision.


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