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:
parent
e4d5a57a9d
commit
c4aaa39cf6
1 changed files with 6 additions and 6 deletions
12
test.cpp
12
test.cpp
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue