-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
43 lines (33 loc) · 988 Bytes
/
test.cpp
File metadata and controls
43 lines (33 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
#include <vector>
#include <random>
#include <chrono>
#include <map>
using namespace std;
#include "game.h"
int main() {
int iterations = 20;
int dice = 4;
int arraySize = (dice * 6) + 1;
game g(arraySize, dice, iterations);
g.playGame();
// for(int i = 0; i < iterations; i++) {
// int score = 0;
// int diceAmount = dice;
// player p(diceAmount, score);
// while(diceAmount > 0) {
// int numDiceToRemove = 0;
// for(int i = 0; i < diceAmount; i++) {
// p.playersDice[i].rollDie();
// // cout << p.playersDice[i].value << endl;
// }
// p.scoreRoll(diceAmount, numDiceToRemove);
// for(int i = 0; i < numDiceToRemove; i++) {
// diceAmount--;
// }
// }
// cout << "Score: " << p.score << endl;
// g.updateStats(p.score);
// }
// g.printStats();
}