-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cpp
35 lines (27 loc) · 1.1 KB
/
Main.cpp
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
/////////////// Chess 2.0 Project //////////////
////////////////// Developers ////////////////////
// //
// Usama Jahangir 295503 DE-41-MTS-A //
// Wajid Ali 285591 DE-41-MTS-A //
// //
////////////////////////////////////////////////////
// The project is based of the my own Chess project for FOP in 2nd Semester
// This project include just the algorithm from the Chess 1.0 (My old Chess)
#include <QApplication>
#include <QIcon>
#include <QCursor>
#include "Game.h"
Game* game;
// This is the main function of Chess which creates a Main Menu instance and than shows it.
int main(int argc, char *argv[]) {
QApplication Chess(argc, argv);
// Set Icon and name for the application
Chess.setWindowIcon(QIcon(":/res/Res/Chess_Icon.png"));
Chess.setApplicationName("Chess 2.0");
// Show the Main Menu
game = new Game();
game->setCursor(Qt::CrossCursor);
game->show();
game->Show_Menu();
return Chess.exec();
}