And this is where the scores are manipulated...
// Step 5. Update the score if the ball is in the
// green area but is not moving
if (isBallOnTheTable()) {
if (ballX >...
Type: Posts; User: jshcamisado
And this is where the scores are manipulated...
// Step 5. Update the score if the ball is in the
// green area but is not moving
if (isBallOnTheTable()) {
if (ballX >...
Is this easier to read?
if (ballX > BALL_MAX_X) {
if (computerScore < WINNING_SCORE) {
computerScore = computerScore++;
table.setMessageText("Computer: " +...
Like this?
if (ballX > BALL_MAX_X ){
if (computerScore<WINNING_SCORE){
But this is my issue, I have tested that and I know that it reaches the value stored in "WINNING_SCORE" because it will always start furiously adding 1 every time it hits that number of points.
...
Yeah, sorry I am not being clear. What I mean is that I want it to continue adding one to the score until it arrives at the winning score (eg. the score that will win the game)
So if the winning...
It's the else if at the top of the code. It basically tries to find the co-ordinates of the ball in respect to the table. So when the ball arrives in a particular place on the table, that means the...
Hi everyone!
Forgive me if my problem is fantastically simple to solve, but I'm a first year Computing student, beginner programmer and this is driving me nuts. As part of our portfolio task, we...