add user input for starting the game

This commit is contained in:
mdiluzio 2015-01-02 19:46:09 +00:00
parent 770502184c
commit b43927a1da
2 changed files with 4 additions and 0 deletions

View file

@ -15,6 +15,7 @@
#include "net.h" #include "net.h"
#include "game.h" #include "game.h"
#include "filesystem.h"
int runClient(int argc, char* argv[]) int runClient(int argc, char* argv[])
{ {

View file

@ -206,6 +206,9 @@ int runServer(int argc, char* argv[])
std::cout<<"All clients connected"<<std::endl; std::cout<<"All clients connected"<<std::endl;
std::cout<<"Hit enter to begin...";
std::cin.ignore();
// Loop for each turn // Loop for each turn
while ( !game.GameOver() ) while ( !game.GameOver() )
{ {