~eduardo_quiros/snake-game

aa2cda8557ce6df2b73ffc8f82346df43406e1fe — Eduardo Quiros 3 months ago a811db8
randomize apple after it's eaten
1 files changed, 1 insertions(+), 1 deletions(-)

M src/com/zetcode/Board.java
M src/com/zetcode/Board.java => src/com/zetcode/Board.java +1 -1
@@ 140,8 140,8 @@ public class Board extends JPanel implements ActionListener {
    private void checkApple() {

        if ((x[0] == apple_x) && (y[0] == apple_y)) {

            score += apple.getPoints();
            apple = appleManager.getRandomApple();
            dots++;
            scoreLabel.setText("Puntaje: " + score);
            locateApple();