Commit 4053715d authored by Terence Martin's avatar Terence Martin

Log what kind of game is starting

Just to make our debugging lives easier, include a log that allows us
to see exactly what kind of game we're into.
parent 04943718
......@@ -64,6 +64,8 @@ var nurdz;
game.halfBalls = (totalRounds <= 0) ? true : false;
// Start the game with empty scores.
resetScores();
// Log what's happening.
console.log(String.format("DEBUG: Starting a new game with round count of {0} and {1} half balls", game.maxRounds, (game.halfBalls ? "with" : "without")));
}
game.newGame = newGame;
/**
......
......@@ -68,6 +68,14 @@ module nurdz.game
// Start the game with empty scores.
resetScores ();
// Log what's happening.
console.log(
String.format (
"DEBUG: Starting a new game with round count of {0} and {1} half balls",
maxRounds,
(halfBalls ? "with" : "without")
));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment