OOP A3 Board Games 35
a Board Game Project Made by Students at Cairo FCAI
Loading...
Searching...
No Matches
TicTacToe4x4_UI Class Reference

#include <TicTacToe4x4.h>

Inheritance diagram for TicTacToe4x4_UI:
UI< char >

Public Member Functions

 TicTacToe4x4_UI ()
Move< char > * get_move (Player< char > *p) override
 Ask the user (or AI) to make a move.
Player< char > * create_player (string &name, char symbol, PlayerType type) override
 Create a player object based on input name, symbol, and type.
Public Member Functions inherited from UI< char >
 UI (string message, int cell_display_width)
 Construct the UI and display a welcome message.
virtual ~UI ()
void display_message (string message)
 Display any message to the user.
virtual Player< char > ** setup_players ()
 Set up players for the game.
void display_board_matrix (const vector< vector< char > > &matrix) const
 Display the current board matrix in formatted form.

Additional Inherited Members

Protected Member Functions inherited from UI< char >
string get_player_name (string player_label)
 Ask the user for the player's name.
PlayerType get_player_type_choice (string player_label, const vector< string > &options)
 Ask the user to choose the player type from a list.
Protected Attributes inherited from UI< char >
int cell_width
 Width of each displayed board cell.

Constructor & Destructor Documentation

◆ TicTacToe4x4_UI()

TicTacToe4x4_UI::TicTacToe4x4_UI ( )
inline

Member Function Documentation

◆ create_player()

Player< char > * TicTacToe4x4_UI::create_player ( string & name,
char symbol,
PlayerType type )
inlineoverridevirtual

Create a player object based on input name, symbol, and type.

Implements UI< char >.

◆ get_move()

Move< char > * TicTacToe4x4_UI::get_move ( Player< char > * )
inlineoverridevirtual

Ask the user (or AI) to make a move.

Implements UI< char >.


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