|
@@ -1,9 +1,9 @@
|
|
#include "dice.h"
|
|
#include "dice.h"
|
|
Dice::Dice(){
|
|
Dice::Dice(){
|
|
srand(time(NULL));
|
|
srand(time(NULL));
|
|
|
|
+ roll();
|
|
}
|
|
}
|
|
int Dice::roll() {
|
|
int Dice::roll() {
|
|
- std::vector<int> output;
|
|
|
|
// generate 6 random numbers to assign to each die
|
|
// generate 6 random numbers to assign to each die
|
|
for (int i = 0; i<colors; i++) {
|
|
for (int i = 0; i<colors; i++) {
|
|
// store numbers generated from rand into output
|
|
// store numbers generated from rand into output
|