Maze Game
The project is about a maze-solving game using a graph-based approach. The maze is represented as a weighted, undirected graph. This means that the graph has edges that are bi-directional and have no arrows. This lets the user go both ways between points, gives them more freedom, and increases the choice that they might make. The program first asks the user for starting and destination points. Then, the user has to navigate through the maze to find the shortest path possible between the two points that they previously chose. Afterward, the player has to input the path by listing each point that they went through and the total distance of the path that they decided to take. The graph is implemented using a custom Java class that utilizes Dijkstra's algorithm to find the shortest path. The maze layout is displayed graphically to the user, with vertices representing locations and edges indicating distances, which are randomly generated to make each game feel like a new one. The program calculates the user’s chosen path, compares it with the shortest path generated by the algorithm, and then provides feedback. This is a simple but fun game to play that helps players get a simple understanding of how graphs work.
Research Area | Presenter | Title | Keywords |
---|---|---|---|
Computer Science | Nano, Aaron Adrian | Computer Science (1.0), Java (1.0), Programming (1.0) | |
Engineering | Le, Ricky | Computer Science | |
Artificial Intelligence | Nyabiosi, Sydiney N. | Programming | |
Artificial Intelligence | Hui Mei, Wilhen Alberto | computer science | |
Mental Health | Jin, Chang | computer science |