This project explores a pathfinding algorithm for a simulated game environment. The main goal of the project is to demonstrate the ability to apply programming and problem-solving skills to a defined context, simulating a real-world application.
This project includes several Python scripts encapsulated in a Jupyter Notebook that:
- Load and preprocess game field screenshots to categorize cells based on potential rewards using color analysis.
- Utilize a depth-first search (DFS) algorithm to explore all possible paths that collect prizes within the constraints of the game.
- Visualize the game field, the paths taken, and analyze the paths to determine the most and least effective strategies.
The main objectives of this project were:
- To gain hands-on experience with Python and libraries such as NumPy, Matplotlib, and PIL.
- To understand and implement a recursive pathfinding algorithm.
- To prectice data visualization skills by plotting the results of the algorithm.
This project is currently in a prototype stage. It serves as a demonstration of my current skills and understanding in Python coding, algorithms, and data visualization. Further development may be undertaken to refine the code and expand its functionality.
Here are some images that demonstrate various aspects and outputs of the project:
To run this project, ensure you have Jupyter Notebook installed with Python 3, and the necessary libraries (NumPy, Matplotlib, and PIL). Open the notebook and execute the cells sequentially to see the pathfinding in action and visualize the results.