Score calculation has been moved to it's own file
This commit is contained in:
@@ -4,13 +4,15 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class NumberHelper {
|
||||
public:
|
||||
NumberHelper();
|
||||
|
||||
~NumberHelper();
|
||||
|
||||
static std::vector<int> GetNumbers(const std::string csv);
|
||||
static vector<int> GetNumbers(string csv);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef SCORECALCULATOR_H
|
||||
#define SCORECALCULATOR_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class ScoreCalculator {
|
||||
public:
|
||||
ScoreCalculator();
|
||||
|
||||
~ScoreCalculator();
|
||||
|
||||
static int GetScore(vector<int> rolls);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user