100void printvector(
const std::vector<std::string> & avector);
static const std::string DELETE_GAME
static const std::string EXIT_GAME
static const std::string NEW_GAME
static const std::string LOAD_GAME
const std::string USER_SAVE_OPTION_PROMPT
bool checkValidInput(const std::string &input)
Check if the input is valid.
void savestatus(unsigned int rounds_played, std::vector< Stock > stocks_list, float balance, const std::string &playerName)
Save the game status into *.save files.
std::vector< std::string > parseLogo(void)
returns the game logo, which is hardcoded inside the function.
const std::string SAVE_FOLDER_PREFIX
void loadstatus(unsigned int &rounds_played, std::vector< Stock > &stocks_list, float &balance, std::string &playerName, std::vector< float > &hsi_history)
Load an existing game status from .save files.
void createplayer(std::string &playerName)
Create a player folder.
void printvector(const std::vector< std::string > &avector)
Print the vector of saves aka player folders.
const std::string SAVE_FILE_EXTENSION_TXT
void delsave(std::string &mode)
Delete a save.
std::vector< std::string > get_saves(void)
Get the list of saves aka player folders.
mode
hiding mean/sd/uplim/lowlim/event_id columns in the table
float balance
Player's balance.
unsigned int rounds_played
Number of rounds played.
std::string playerName
Player's name.
Declaration of the Stock class.