-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathchess.cpp
More file actions
45 lines (38 loc) · 959 Bytes
/
Copy pathchess.cpp
File metadata and controls
45 lines (38 loc) · 959 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
44
45
#include "chess.h"
#include <iostream>
#include <string>
using namespace std;
chessBoard newBoard;
int main(){
int choice;
bool exit = false;
//There's going to be a menu
cout << "MAIN MENU: " << "\n\n";
cout << "Please select an option (1 - ): " << endl;
cin >> choice;
while(exit != true){
if (choice == 1){
newBoard.getBoard();
}
int i = 0;
int j = 0;
piece newPawn1("pawn1");
newPawn1.setPiece(0,0);
newBoard.setPieceOnBoard(newPawn1);
cin >> choice;
if (choice == 2){
newBoard.getBoard();
/* int i = 0;
int j = 0;
int k = 0;
int l = 0;
cin >> i >> j >> k >> l;
newBoard.movePiece(i,j,k,l);
newBoard.getBoard(); */
}
else{
exit = true;
}
}
return 0;
}