Bug 592

Summary: PacMan moves even after he looses he lost a life
Product: Group14-Pacman Reporter: Aleksa <ajelaca2-c>
Component: GameAssignee: Alex <alex.scriba>
Status: RESOLVED FIXED    
Severity: major CC: tianxyang3-c
Priority: High    
Version: 0.0.1   
Hardware: PC   
OS: Windows   

Description Aleksa 2021-11-21 00:39:53 HKT
I run Main.java and input the sequence of commands left, left, left, left, up, up, after which the PacMan should loose his life and return to his starting position. Instead he keeps moving.
Comment 1 Aleksa 2021-11-21 00:45:37 HKT
The problem was in void handleMovements(int, int) in Game.java. There was no indicator to tell us whether PacMan lost his life or not after the collision with ghosts. Now this is fixed by converting method resolveCollison(Ghost, boolean) into boolean and using conditionals in void handleMovements(int, int)