-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathturniphelper.h
More file actions
30 lines (23 loc) · 1.07 KB
/
Copy pathturniphelper.h
File metadata and controls
30 lines (23 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _TURNIP_HELPER_H_
#define _TURNIP_HELPER_H_
#include <vector>
#include <string>
#include <iostream>
#include "turnip.h"
#include "turnippatterns.h"
#include "csv.h"
#include "turnipart.h"
const std::string INVALID_ARG_NUM = "You've entered an invalid number of arguments!";
const std::string HELP_MSG = "Usage: ./stalks turnip_prices.csv";
const std::string NO_ISLANDS = "There are no islands to predict turnip prices for!";
const std::string CANT_PREDICT = "Nothing to predict for this island. Last possible price on Sat PM already provided. Given island's turnip data:";
const std::string PREDICTING = "Predicting turnip prices for this island's turnip data:";
// prints out turnips in islandTurnips vector
void printReadTurnips(std::vector<Turnip *> &islandTurnips);
// get turnip(s) from csv
std::vector<Turnip *> getTurnips(std::string &csv);
// predicting turnip pattern sequences
void predictTurnips(std::vector<Turnip *> &islandTurnips, AllPrices *allPrices);
// free heap memory; called after done predicting
void cleanupTurnips(std::vector<Turnip *> &islandTurnips);
#endif