-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (22 loc) · 893 Bytes
/
Copy pathmain.cpp
File metadata and controls
31 lines (22 loc) · 893 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
#include "GameController.h"
#include "glfw-3.3.8/include/GLFW/glfw3.h"
#define GL_SILENCE_DEPRECATION
/* -----------------------------------------------------------------------------
IDEA - probably won't implement but thought it was fun
struct SimpleMove {Location source, Location destination};
struct CaptureMove {Location source, Location destination, bool enPassant};
struct CastleMove {bool isKingside};
class Move {
std::variant<SimpleMove, CaptureMove, CastleMove> details;
public:
bool isSimpleMove() const {return details.index == 0;}
bool isCapturingMove() const {return details.index == 1;}
bool isCastlingMove() const {return details.index == 2;}
};
----------------------------------------------------------------------------- */
int main() {
GameController g {new GameViewOpenGL};
g.setup();
/*g.initGameLoop();*/
return EXIT_SUCCESS;
}