Score calculation has been moved to it's own file

This commit is contained in:
2025-03-18 16:40:31 +01:00
parent e52031d3df
commit 43cd0101f3
6 changed files with 75 additions and 35 deletions
+3 -1
View File
@@ -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
+18
View File
@@ -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