![]() |
OOP A3 Board Games 35
a Board Game Project Made by Students at Cairo FCAI
|
#include <TicTacToe5x5.h>
Public Member Functions | |
| TicTacToe5x5_UI () | |
| Move< char > * | get_move (Player< char > *player) override |
| Ask the user (or AI) to make a move. | |
| 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. | |
| virtual Player< char > * | create_player (string &name, char symbol, PlayerType type)=0 |
| Create a player object based on input name, symbol, and type. | |
| 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. | |
|
inline |
Ask the user (or AI) to make a move.
Implements UI< char >.