-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
45 lines (43 loc) · 1.8 KB
/
main.cpp
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
#include <iostream>
#include "caso.h"
#include "partie.h"
#include <bits/stdc++.h>
using namespace std;
int main()
{
int k;
partie p;
while (1)
{
cout<<"\033[1;36m"<<" ****************************************************************\n"
" * *\n"
" * ** ** ** ** *\n"
" ** ** ** ** ** 1. Nouvelle partie ** ** ** ***\n"
" * ** ** ** ** ** *\n"
" * *\n"
" * *\n"
" * ** ** ** ** ** *\n"
" ** ** ** ** ** 2. Scores ** ** ** ** ** ***\n"
" * ** ** ** ** ** ** *\n"
" * *\n"
" ****************************************************************\n" <<"\033[0m"<<endl;
cin>>k;
if(k==1)
{
p.saisir_nb_mines();
p.saisir_nb_lignes();
p.saisir_nb_colonnes();
p.placer_mines();
p.game();
break;
}
else
{
p.affiche_scores();
p.my_delay(2);
system("clear");
}
}
// cout << "Hello world!" << endl;
return 0;
}