rp-scrabble
Simple, terminal-based Scrabble game
|
#include <bag.h>
Public Member Functions | |
Bag () | |
~Bag () | |
void | show () |
bool | isEmpty () |
void | shuffle () |
std::vector< Tile * > | draw (int count) |
Private Attributes | |
std::vector< Tile * > | bag |
Implements the bag of tiles used in a traditional game of scrabble.
The bag is a vector of pointers to Tile objects
Bag::Bag | ( | ) |
vector< Tile * > Bag::draw | ( | int | count | ) |
bool Bag::isEmpty | ( | ) |
void Bag::show | ( | ) |
void Bag::shuffle | ( | ) |