Skip to content

School 42 project // Paths finder to move ants from start room to end room with the least amount of steps

Notifications You must be signed in to change notification settings

VBrazhnik/Lem_in

Repository files navigation

Lem_in

Lem_in is a School 42 project.

The purpose of this project is to find paths from start room to end room and to move ants by these paths with the least amount of steps.

Lem-in visualizer (Welcome screen)

lem-in.en.pdf is the task file.

You can check wiki-page if you want to read description of created algorithm.

Features

  • Find all best paths in most cases
  • Move ants by found paths in an optimal way
  • Extended error messages
  • Verbose mode

How to run program?

./lem-in < MAP_FILE

Lem-in

Verbose mode

Program has verbose mode. In this mode program will display paths which were found.

How to enable verbose mode?

./lem-in -v < MAP_FILE

Lem-in (Verbose mode)

Visualizer

Also this project has a visualizer.

It was written with SDL2 library.

Prerequisites

  • brew install SDL2
  • brew install SDL2_ttf
  • brew install SDL2_image
  • brew install SDL2_gfx

How to run visualizer?

./lem-in < MAP_FILE | ./vs

Lem-in visualizer_(Main_screen)

Vector files

Vector files (.ai) of images, that were used as textures, you can find in resources/vector folder.

How to clone?

This repository includes submodule. So if you want to clone it, you can use the following command:

git clone --recurse-submodules <repository url>

If you will use git clone <repository url> instead of, you will get the empty libft folder.

About

School 42 project // Paths finder to move ants from start room to end room with the least amount of steps

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published