diff --git a/GameDie.cpp b/GameDie.cpp index d512405..4c79ee5 100644 --- a/GameDie.cpp +++ b/GameDie.cpp @@ -7,10 +7,10 @@ GameDie::GameDie() { srand(time(NULL)); - counter.resize(FACES); + roll_counter.resize(FACES); for(int i=0; i GameDie::get_distribution(){ - return counter; + return roll_counter; +} + +vector GameDie::get_percentages(){ + vector p; + for(int i=0;i get_distribution(); + vector get_percentages(); private: - vector counter; + vector roll_counter; const static int FACES = 6; };