From 94ac8b16eb3e4abdf81fa51c63f22b414150dcdb Mon Sep 17 00:00:00 2001 From: Gugubo <29143981+Gugubo@users.noreply.github.com> Date: Mon, 5 Mar 2018 17:55:20 +0100 Subject: [PATCH] Update Player.pde Fixed a typo --- PoolAI/Player.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PoolAI/Player.pde b/PoolAI/Player.pde index 0114a08..38edee9 100644 --- a/PoolAI/Player.pde +++ b/PoolAI/Player.pde @@ -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 @@ -184,4 +184,4 @@ class Player { return ballsSunk; } -} \ No newline at end of file +}