-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (28 loc) · 910 Bytes
/
Copy pathmain.cpp
File metadata and controls
43 lines (28 loc) · 910 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
//
// main.cpp
// 2CPP Ange Et Demon
//
// Created by Etok's Sylva on 11/02/2015.
// Copyright (c) 2015 Etok's Sylva. All rights reserved.
//
#include "Partie.h"
int main(int argc, const char * argv[]) {
int taille, choix, puissance;
string nom1, nom2;
cout << "BIENVENU DANS MON JEU DE L'ANGE ET DEMON \n" << endl;
Joueur::verifier(taille, "Entrez la taille du tableau");
cout << "Entrez le nom de l'ange : "; cin >> nom1;
cout << "Entrez le nom du demon : "; cin >> nom2;
do {
Joueur::verifier(choix, "Entrez 1 pour l'Ange normal ou 2 pour Puissant");
} while (choix != 1 && choix != 2);
if (choix == 2) {
do {
Joueur::verifier(puissance, "Entrez la puissance de l'ange >= 2");
} while (puissance < 2);
}
cout << endl;
Partie maPartie(taille, choix, nom1, nom2, puissance);
maPartie.tourDeJeu();
return 0;
}