Trabalho Prático - PDS2
Carregando...
Procurando...
Nenhuma entrada encontrado
Referência da Classe Gameabstract
Diagrama de hierarquia da classe Game:
Diagrama de colaboração para Game:

Membros Públicos

 Game (int rows, int cols)
 Constructs a new Game object with the specified number of rows and columns.
 
virtual void readMove ()=0
 
virtual void makeMove ()=0
 
virtual char isGameFinished ()=0
 
void changePlayer ()
 
virtual void printBoard ()
 Prints the current state of the game board to the standard output.
 

Atributos Protegidos

Board board
 
std::pair< int, int > move
 
char current_player
 

Construtores e Destrutores

◆ Game()

Game ( int rows,
int cols )

Constructs a new Game object with the specified number of rows and columns.

Parâmetros
rowsThe number of rows for the game board.
colsThe number of columns for the game board.

Documentação das funções

◆ isGameFinished()

virtual char isGameFinished ( )
pure virtual

Implementado por Lig4, Reversi e TTT.

◆ makeMove()

virtual void makeMove ( )
pure virtual

Implementado por Lig4, Reversi e TTT.

◆ printBoard()

void printBoard ( )
virtual

Prints the current state of the game board to the standard output.

Reimplementado por Lig4.

Este é o diagrama das funções utilizadas por essa função:

◆ readMove()

virtual void readMove ( )
pure virtual

Implementado por Lig4, Reversi e TTT.


A documentação para essa classe foi gerada a partir dos seguintes arquivos: