add user input for starting the game
This commit is contained in:
		
							parent
							
								
									770502184c
								
							
						
					
					
						commit
						b43927a1da
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		|  | @ -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[]) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -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() ) | ||||||
|     { |     { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue