From 841238de2e0925f97674d66386392471770eacea Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Thu, 8 Feb 2024 00:48:54 +0100 Subject: [PATCH] added the move function for Ghost in GameManager class and Ghost move in random stage --- src/main/java/pacmanGame/GameManager.java | 3 +++ src/main/java/pacmanGame/Ghost.java | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index 9d79ebd..0063ad3 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -33,6 +33,9 @@ public class GameManager { visualizer.Update(); if(time%5 == 0) { player.Move(); + for(int i = 0; i