Steps to Reproduce: 1. Run Main.java 2. Press Key 1 to select Player Mode 3. Operate the snake to eat beans Actual Results: The snake's score is not increased after eating beans Expected Results: The snake's score should be increased by one after eating normal beans and by three after eating score beans
After checking the code, the reason is in the background.java, the score just gets from the AISnake.getInstance().getScore(). Hence, we remove the score description from the background.java to snake.java, then every snake would set its own score.