Skip to content

matthewgoembel/Pacman_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Pacman_Game

This Java program presents a simplified version of the classic Pac-man game implemented with a 2D grid structure. The game involves maneuvering Pac-man through a maze to consume dots while avoiding ghosts that move strategically toward Pac-man. The player initiates each move for Pac-man, followed by the ghosts, calculating the shortest path to reach Pac-man using Breadth-First Search. The grid contains various elements, including Pac-man, ghosts, dots, obstacles, and empty cells. The user interacts with the game by entering directional commands for Pac-man's movement. The game concludes when all dots are consumed, or a ghost catches Pac-man. The program displays the game grid, player points, and the ghosts' moves with the lengths of their shortest paths. The code maintains clarity and readability, effectively demonstrating algorithmic and game logic skills.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages