-
Notifications
You must be signed in to change notification settings - Fork 0
/
jeu.hh
31 lines (30 loc) · 789 Bytes
/
jeu.hh
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
#pragma once
#include "echiquier.hh"
#include "piece.hh"
#include "square.hh"
#include <string>
class Jeu
{
private:
bool resolut;
bool cache_resolution;
bool en_echeque;
Couleur joueur;
Echiquier mon_echiquier;
int numero_tour;
Square deplacement[55][2];
int check(struct mouvement);
void errorhande(int errono);
void end_turn();
bool is_pat();
public:
void print_canonical_position() const;
erreurDeplacement rock(bool grand);
void explain(enum erreurDeplacement errono);
bool fin();
void affiche();
bool deplace(std::string const orig, std::string const dest);
Couleur get_couleur();
Jeu(/* args */);
~Jeu();
};