Skip to content

Commit 137c9a6

Browse files
authored
Add files via upload
1 parent a2fa429 commit 137c9a6

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

FarkleCplusplus.cpp

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#include <iostream>
2+
#include <ctime>
3+
using namespace std;
4+
5+
6+
void mainMenu(){
7+
8+
const string PLAY;
9+
const string EXIT;
10+
int menuSelection;
11+
12+
cout << " *** FARKLE *** \n";
13+
cout << " -- 1. PLAY -- \n";
14+
cout << " -- 0. EXIT -- \n";
15+
cin >> menuSelection;
16+
17+
switch(menuSelection){
18+
case 1:cout << "selection 1\n";
19+
break;
20+
21+
case 0:cout << "selection 0\n";
22+
break;
23+
24+
}
25+
26+
}
27+
void game(){
28+
29+
const int PLAYER_SCORE = 0 ;
30+
const int COMP_SCORE = 0 ;
31+
32+
33+
34+
}
35+
36+
void d6(){
37+
int output;
38+
srand(time(0));
39+
40+
output = rand()%6;
41+
42+
return;
43+
44+
}
45+
int main(){
46+
mainMenu();
47+
return 0;
48+
}

0 commit comments

Comments
 (0)