-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
20 lines (16 loc) · 884 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "Game.h" // to include Game Class
/****
This is main.cpp file which is entry point of our program.
It just calls the static function of class Game to start the Game.
As all members of Class Games are static so we dont need to create object to Run Game.
About rlutil.h header file
- This programs uses external header file rlutil which allow us to perform various useful tasks,
like Coloring the Text, Moving Cursor anywhere in console screen, Time Delay etc.
- All the functions used in Code following rlutil namespace e.g, rlutil::changeColor(), belongs to rlutil header file.
- Please refer to rlutil header file before reading the further Code for better understanding of Code.
***/
int main()
{
Game::startGame(); // start the game
return EXIT_SUCCESS; // return 0 to OS which indicates succesfull execution of program
}