Skip to content

inuksperera/iceGameJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Ice Game

Ice Game made using Java for a research about Big O Notation

This project consists of a game where the player is sliding on ice from the starting position and bouncing off obstacles until they finish the maze by reaching the finish point. The player cannot change directions unless they hit an obstacle. The maze is found in a text file format where "." represents ice, "0" represents obstacles, "S" represents the starting point and "F" represents the finish point.

The Breadth First Search algorithm is applied on an Adjacency List Graph which represents the maze in the selected text file to ultimately find the shortest path from the starting point to the finish point. The program starts at the starting point and traverses all possible paths by bouncing off obstacles until they reach the finish point. The analysis for Big O Notation is done by using different mazes where the size of the maze doubles each time to finally compare how the time complexity of the program changes.

Program Example #1

Input:

image

Output:

image

Program Example #2

Input:

image

Output:

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages