Commit a2de46c6 authored by Terence Martin's avatar Terence Martin

Remove some old debug logs

This cleans up the console now that we know that everything works the
way we want it to.
parent 22e0f85d
......@@ -622,13 +622,11 @@ var nurdz;
// Based on the visible ball type, save to one ball array and
// restore from the other.
if (this._visibleBallType == game.PlayerType.PLAYER_HUMAN) {
console.log("Swapping from human to computer balls");
this.saveToBallArray(this._playerBalls);
this.restoreFromBallArray(this._computerBalls);
this._visibleBallType = game.PlayerType.PLAYER_COMPUTER;
}
else {
console.log("Swapping from computer to human balls");
this.saveToBallArray(this._computerBalls);
this.restoreFromBallArray(this._playerBalls);
this._visibleBallType = game.PlayerType.PLAYER_HUMAN;
......@@ -2096,18 +2094,12 @@ var nurdz;
return;
// If there is not a target column for the ball to push yet, then we
// need to select that right now.
if (this._aiSelectedColumn == -1) {
console.log("AI is selecting a move");
if (this._aiSelectedColumn == -1)
this.ai_selectTargetColumn();
}
else if (this._aiSelectedColumn != this._mapPosition.x) {
console.log("AI is walking towards target");
else if (this._aiSelectedColumn != this._mapPosition.x)
this.ai_stepTowardsTargetBall();
}
else {
console.log("AI is pushing the ball now");
else
this.ai_pushTargetBall();
}
};
/**
* Render this player using the renderer provided. The position given is
......
......@@ -539,14 +539,12 @@ module nurdz.game
// restore from the other.
if (this._visibleBallType == PlayerType.PLAYER_HUMAN)
{
console.log ("Swapping from human to computer balls");
this.saveToBallArray (this._playerBalls);
this.restoreFromBallArray (this._computerBalls);
this._visibleBallType = PlayerType.PLAYER_COMPUTER;
}
else
{
console.log ("Swapping from computer to human balls");
this.saveToBallArray (this._computerBalls);
this.restoreFromBallArray (this._playerBalls);
this._visibleBallType = PlayerType.PLAYER_HUMAN;
......
......@@ -325,28 +325,19 @@ module nurdz.game
// If there is not a target column for the ball to push yet, then we
// need to select that right now.
if (this._aiSelectedColumn == -1)
{
console.log ("AI is selecting a move");
this.ai_selectTargetColumn ();
}
// There is a target column; if we're not there yet, then take a
// step towards it. This call will turn the entity in the correct
// direction and be sure not to take a step until the turn is
// completed.
else if (this._aiSelectedColumn != this._mapPosition.x)
{
console.log ("AI is walking towards target");
this.ai_stepTowardsTargetBall ();
}
// We are at the target column, so turn to face the ball and push
// it.
else
{
console.log ("AI is pushing the ball now");
this.ai_pushTargetBall ();
}
}
/**
......
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