Skip to content
/ Lem-in Public

This project is meant to make you code a digital version of an ant farm.

Notifications You must be signed in to change notification settings

Nixa001/Lem-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LEM-IN

zone01 golang

The goal of lem-in is to navigate a group of ants through a maze from the start room to the end room in the least number of turns, while avoiding collisions and following specific rules.

Table of Contents

Getting Started

Prerequisites

Before running Lem-In, make sure you have Go installed on your system. You can download and install it from the official Go website.

Installation

  1. Clone the repository:

    git clone https://learn.zone01dakar.sn/git/nifaye/lem-in
  2. Navigate to the project directory:

    cd lem-in
  3. Build the executable:

    go build

Usage

  • Run Lem-In Go with the following command:

    ./lem-in <input.txt>
  • Replace input.txt with your own input file containing the Lem-In data.

Algorithm

Lem-In Go uses a combination of graph traversal algorithms and heuristics to find the optimal path for the ants. The main steps of the algorithm include:

  1. Parsing the input data to create a graph representation of the maze.
  2. Applying graph traversal algorithms (e.g., Dijkstra's algorithm) to find the shortest paths from the start room to the end room. See more
  3. Distributing ants along the paths while avoiding collisions.

Contributing

Contributions to Lem-In are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.

Autors

About

This project is meant to make you code a digital version of an ant farm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages