-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (27 loc) · 769 Bytes
/
Copy pathmain.cpp
File metadata and controls
30 lines (27 loc) · 769 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
#include <iostream>
#include "Board.hpp"
using namespace std;
int main(){
Board game;
while(game.getMoves() < 50 && (!(game.gameOver())))
game.display();
if(game.turn() == 69)
{
game.deleter();
return 0;
}
}
game.display();
if(game.blackAlive){
cout << "Congratulations, Black won in " << game.moves << " turns!" << endl;
}
else if(game.whiteAlive){
cout << "Congratulations, White won in " << game.moves << " turns!" << endl;
}
else if(game.moves >= 50){
cout << "Game ends because of the 50 move rule. Tie!" << endl;
>>>>>>> parent of 94b00a4 (Merge pull request #15 from JustNekoChris/feature/SFML)
}
cout <<"Good Game!";
return 0;
}