This project involves creating a digital ant farm simulation called lem-in, which requires implementing algorithms for pathfinding and data manipulation.
- The
data.go
file contains functions for reading input data and parsing it into a matrix and dot structure. - The
movement.go
file contains functions for moving the ants through the rooms and managing their paths and occupancy. - The
pathfinder.go
file contains a function to find all possible paths from a start room to an end room using a depth-first search algorithm.
To run the application, follow these steps:
- Ensure you have Go installed.
- Clone this repository.
- Navigate to the project directory.
- Run the following command:
go run . examples/ {File Name (e.g. exapmple01.txt; badexample01.txt)}
- Or run the test script by the command
bash test.sh
- Please refer to the public repo for the review.
Thank you for your time and expertise!