Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PoolAI/Player.pde
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class Player {
min = dist(tables[0].holes[j].pos.x, tables[0].holes[j].pos.y, ballPos.x, ballPos.y);
}
}
totalDistance += min;//add the smallest distance to a whole to the total
totalDistance += min;//add the smallest distance to a hole to the total
} else {//if the ball is sunk
ballsSunk ++;
if (i == 4 && !blackBallIsLast()) {//if the black ball is sunk and it isnt the last ball
Expand Down Expand Up @@ -184,4 +184,4 @@ class Player {

return ballsSunk;
}
}
}