-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPROGRAMA PRINCIPAL
More file actions
88 lines (67 loc) · 1.6 KB
/
PROGRAMA PRINCIPAL
File metadata and controls
88 lines (67 loc) · 1.6 KB
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
int main()
{
int op;
srand(time(0));
cout << "Con que tablero desea trabajar" << endl;
cout << "" << endl;
cout << " 1. Clasica (4 x 4)" << endl;
cout << " 2. Extendida (6 x 6)" << endl;
cout << " 3. Dificil (8 x 8)" << endl;
cout << " 4. Compacta (3 x 3)" << endl;
cout << "" << endl;
cout << "Ingrese una opcion" << endl;
cin >> op;
system("pause");
system("cls");
if (op == 1) {
int c = 4;
string mov;
Game juego = Game(c, random1(c), random1(c), random1(c), random1(c));
juego.imprimirtabla();
cout << "" << endl;
cout << "ingrese movimiento" << endl;
cin >> mov;
juego.recorrer(mov);
}
else if (op == 2) {
int e = 6;
string mov;
Game juego = Game(e, random1(e), random1(e), random1(e), random1(e));
juego.imprimirtabla();
cout << "" << endl;
cout << "ingrese movimiento" << endl;
cin >> mov;
juego.recorrer(mov);
}
else if (op == 3) {
int d = 8;
string mov;
Game juego = Game(d, random1(d), random1(d), random1(d), random1(d));
juego.imprimirtabla();
cout << "" << endl;
cout << "ingrese movimiento" << endl;
cin >> mov;
juego.recorrer(mov);
}
else if (op == 4) {
int co = 3;
string mov;
Game juego = Game(co, random1(co), random1(co), random1(co), random1(co));
juego.imprimirtabla();
cout << "" << endl;
cout << "ingrese movimiento" << endl;
cin >> mov;
juego.recorrer(mov);
}
else {
int c = 4;
string mov;
Game juego = Game(c, random1(c), random1(c), random1(c), random1(c));
juego.imprimirtabla();
cout << "" << endl;
cout << "ingrese movimiento" << endl;
cin >> mov;
juego.recorrer(mov);
}
return 0;
}