Updated the test file to launch the server

It asks the user to enter a port number, which is passed into the startGame function as an argument, once that happens, the server is launched, and a client can connect via telnet.
This commit is contained in:
Brandon Jackson 2015-10-27 21:32:52 -05:00
parent e4d5a57a9d
commit c4aaa39cf6

View file

@ -1,14 +1,14 @@
#include "Board.h"
#include "Engine.h" #include "Engine.h"
using namespace std; using namespace std;
int main() int main()
{ {
//board testing
Board b;
//engine testing
Engine e; Engine e;
e.startGame(); int pn = 0;
cout << "Welcome to Breakthrough server launcher, please enter a host port number: \n";
cin >> pn;
cin.clear();
cin.ignore(10000,'\n');
e.startGame(pn);
} }