#include "dice.h"
Dice::Dice(){
    srand(time(NULL));
    roll();
}
int Dice::roll() {
    // generate 6 random numbers to assign to each die
    for (int i = 0; i<colors; i++) {
        // store numbers generated from rand into output
        dice.push_back((rand() % 6) + 1);
    }    
    return 15;
}
void Dice::print() {
    fprintf (stdout, "White1 Dice: %d\n", dice[white1]);
    fprintf (stdout, "White2 Dice: %d\n", dice[white2]);
    fprintf (stdout, "Yellow Dice: %d\n", dice[yellow]);
    fprintf (stdout, "Red Dice: %d\n", dice[red]);
    fprintf (stdout, "Blue Dice: %d\n", dice[blue]);
    fprintf (stdout, "Green Dice: %d\n", dice[green]);
}