From c4aaa39cf699ff906d159aebfb1eee7cff036a4e Mon Sep 17 00:00:00 2001 From: Brandon Jackson <1drummer@att.net> Date: Tue, 27 Oct 2015 21:32:52 -0500 Subject: [PATCH] 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. --- test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test.cpp b/test.cpp index 88d7f86..e697fbe 100755 --- a/test.cpp +++ b/test.cpp @@ -1,14 +1,14 @@ -#include "Board.h" #include "Engine.h" using namespace std; int main() { - //board testing - Board b; - - //engine testing 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); }