| Summary: | In Player Mode, the snake's score does not increase after eating beans | ||
|---|---|---|---|
| Product: | CS3343 2021/22 Group16 Greedy Snake | Reporter: | LI Ruoxin <ruoxinli3-c> |
| Component: | Model section | Assignee: | Baron Qu <zhiyanqu2-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | ruoxinli3-c |
| Priority: | --- | ||
| Version: | Ver 3.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
|
Description
LI Ruoxin
2021-11-29 17:07:30 HKT
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. |