Bug 593 - PacMan moves into walls
Summary: PacMan moves into walls
Status: RESOLVED FIXED
Alias: None
Product: Group14-Pacman
Classification: Unclassified
Component: Game (show other bugs)
Version: 0.0.1
Hardware: PC Windows
: High major
Assignee: Alex
URL:
Depends on:
Blocks:
 
Reported: 2021-11-21 00:48 HKT by Aleksa
Modified: 2021-12-06 22:55 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksa 2021-11-21 00:48:21 HKT
I run Main.java and input the command "UP". Up from PacMan is a wall. He goes into the wall instead of keeping its current position
Comment 1 Aleksa 2021-11-21 00:50:11 HKT
The problem was in handleMovements() in Game.java, as we did not check whether PacMan's next postion is a wall or not, but rather it's current position. Now it is fixed