Tweaking manager/simulate.py, updating manual and webpage
[progcomp2012.git] / judge / manager / game.cpp
index e87927d..5282ec0 100644 (file)
@@ -43,7 +43,7 @@ Game::Game(const char * redPath, const char * bluePath, const bool enableGraphic
                        fprintf(stderr, "BLUE! (blue: \"%s\")\n", bluePath);
                exit(EXIT_FAILURE);
        }
                        fprintf(stderr, "BLUE! (blue: \"%s\")\n", bluePath);
                exit(EXIT_FAILURE);
        }
-       logMessage("Game initialised.\n");
+//     logMessage("Game initialised.\n");
 }
 
 Game::Game(const char * fromFile, const bool enableGraphics, double newStallTime, const bool allowIllegal, FILE * newLog, const  Piece::Colour & newReveal, int newMaxTurns, bool newPrintBoard, double newTimeoutTime) : red(NULL), blue(NULL), turn(Piece::RED), theBoard(10,10), graphicsEnabled(enableGraphics), stallTime(newStallTime), allowIllegalMoves(allowIllegal), log(newLog), reveal(newReveal), turnCount(0), input(NULL), maxTurns(newMaxTurns), printBoard(newPrintBoard), timeoutTime(newTimeoutTime)
 }
 
 Game::Game(const char * fromFile, const bool enableGraphics, double newStallTime, const bool allowIllegal, FILE * newLog, const  Piece::Colour & newReveal, int newMaxTurns, bool newPrintBoard, double newTimeoutTime) : red(NULL), blue(NULL), turn(Piece::RED), theBoard(10,10), graphicsEnabled(enableGraphics), stallTime(newStallTime), allowIllegalMoves(allowIllegal), log(newLog), reveal(newReveal), turnCount(0), input(NULL), maxTurns(newMaxTurns), printBoard(newPrintBoard), timeoutTime(newTimeoutTime)
@@ -479,7 +479,7 @@ MovementResult Game::Play()
        
        
 
        
        
 
-       logMessage("Messaging red with \"START\"\n");
+//     logMessage("Messaging red with \"START\"\n");
        red->Message("START");
        
 
        red->Message("START");
        
 
@@ -858,6 +858,8 @@ void Game::MakeControllers(const char * redPath, const char * bluePath)
                red = new NetworkSender(Piece::RED, red, blueNetwork);
                logMessage("    (Red's responses will be copied over the connection)\n");
        }
                red = new NetworkSender(Piece::RED, red, blueNetwork);
                logMessage("    (Red's responses will be copied over the connection)\n");
        }
+
+       red->FixName(); blue->FixName();
        
 }
 
        
 }
 

UCC git Repository :: git.ucc.asn.au