main.cpp 529 B

12345678910111213141516171819202122232425262728
  1. // Includes
  2. #include <iostream>
  3. #include "GameCore.h"
  4. using namespace std;
  5. int main() {
  6. // Start
  7. cout << "SpaceExpansion starts." << endl;
  8. // Random start
  9. srand((unsigned int) time(0));
  10. // Initialisation
  11. GameCore spaceManager;
  12. if (!spaceManager.initialize()){
  13. cout << "SpaceExpansion has encountered a problem." << endl;
  14. cout << "Ask Jovian to debug his program ..." << endl;
  15. return 1;
  16. }
  17. // QuickGame
  18. spaceManager.startQuickGame();
  19. // End
  20. return 0;
  21. }