Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vbrazhnik/lem_in
School 42 project // Paths finder to move ants from start room to end room with the least amount of steps
https://github.com/vbrazhnik/lem_in
42 42projects 42school algorithm born2code pathfinder sdl2 sdl2-gfx sdl2-image sdl2-ttf unitfactory
Last synced: about 2 months ago
JSON representation
School 42 project // Paths finder to move ants from start room to end room with the least amount of steps
- Host: GitHub
- URL: https://github.com/vbrazhnik/lem_in
- Owner: VBrazhnik
- Created: 2018-10-02T18:56:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T04:21:41.000Z (about 6 years ago)
- Last Synced: 2024-02-05T15:53:07.415Z (11 months ago)
- Topics: 42, 42projects, 42school, algorithm, born2code, pathfinder, sdl2, sdl2-gfx, sdl2-image, sdl2-ttf, unitfactory
- Language: C
- Homepage:
- Size: 4.22 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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)](images/lem-in_vs_(welcome_screen).png)
[`lem-in.en.pdf`](/lem-in.en.pdf) is the task file.
_**You can check [wiki-page](../../wiki/Algorithm) 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](images/lem-in.png)
### 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)](images/lem-in_(verbose_mode).png)
### 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)](images/lem-in_vs_(main_screen).png)
**Vector files**
Vector files (.ai) of images, that were used as textures, you can find in [resources/vector](tree/master/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
```If you will use `git clone ` instead of, you will get the empty `libft` folder.