rp-scrabble
Simple, terminal-based Scrabble game
|
#include <game.h>
Public Member Functions | |
Game () | |
~Game () | |
void | run () |
Private Member Functions | |
void | init () |
bool | firstTurnCheck (std::string str, int r, int c, char dir) |
void | addPlayer (Player *p) |
std::string | getInput () |
void | printHelp () |
Private Attributes | |
Board * | gameBoard |
Bag * | gameBag |
std::vector< Player * > | players |
std::vector< Play * > | plays |
std::string | gameID |
std::string | logFilePath |
Implements the main game loop, logging and other functionalities
Game::Game | ( | ) |
|
private |
|
private |
Check whether the first play is valid
tileStr | String of letters that represent the Tiles to be placed |
r | Row where the first Tile goes |
c | Column where first tile goes |
dir | Direction of placement |
This function shall not throw exceptions.
|
private |
|
private |
|
private |
void Game::run | ( | ) |