not getting any output

i am working on a project for school and i am just trying to get the program to run befor i try to figure out how to make it multiplayer. i got it to debug with no errors but im not gettig any output. please help me.

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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <iomanip>
#include <cctype>
using namespace std;


int turn[3] = {0,0,0};


int main()
{
	int srand (time(0));
	int playerScore = 0;

	playerScore = turn[0];
	if (playerScore< 13)
	{
		void roll();
	}
	else
	{
		cout<< "congradulations you won!";
	}
	return 0;
}

void roll()
{
	int s;

	for (int x=1; x < 4; x++)
	{
	s = rand()%13;

	if (s<6)
	{
		void greenDice();
	}
	else if(s>5 && s<9)
	{
		void yellowDice();
	}
	else if(s>8)
	{
		void redDice();
	}
	}
}
void greenDice()
{
	int g;

	g = rand()%6;

	if (g<3)
	{
		int fish();
	}
	else if(g>2 && g<5)
	{
		int hook();
	}
	else if(g>4)
	{
		int boot();
	}
}
void yellowDice()
{
	int y;

	y = rand()%6;

	if (y<2)
	{
		int fish();
	}
	else if(y>1 && y<4)
	{
		int hook();
	}
	else if(y>3)
	{
		int boot();
	}
}
void redDice()
{
	int r;

	r = rand()%6;

	if (r<1)
	{
		void fish();
	}
	else if(r>0 && r<3)
	{
		void hook();
	}
	else if(r>2)
	{
		void boot();
	}
}
void fish()
{
	cout<< "You rolled a fish";
	++ turn[0];
}
void hook()
{
	cout << "You rolled a hook";
	++ turn[1];
}
void boot()
{
	cout <<"You rolled a boot.";
	++ turn[2];
}
void reroll(int turn[2])
{
	int bOOTS = turn[2];
	char again;

	cout << "Would you like to roll again Y or N?";
	cin >> again;
	
	if(again == 'Y' && bOOTS < 3)
	{
		roll();
	}
}
Last edited on
Topic archived. No new replies allowed.