Giter VIP home page Giter VIP logo

lemin's Introduction

Lem_in

This algorithmic project is about finding the most efficient way to allow ants to reach the end of a labyrinth (the less turns possible).
First, just clone this project and use the command make in order to build the binary then lauch it : ./lem-in.. After that, you must enter the number of ants. Then, you must enter a map :

Map entry (Input)

take care : if your input is wrong, the programm will be executed, even if there are missing informations.

  • define rooms like : name coordx coordy. (no - in rooms name)
  • define connections like : name1-name2.
  • use ##START and ##END before the line defining the starting or ending room.
  • You can enter comments, they must follow a #

Rules

  • One room cannot contain more than 1 ant, except the starting and ending ones.
  • All ants are in the starting room at the beginning.
  • At each turn, the programm can move an ant only once through a connection.
  • the room the ant is going on must be empty.

Output

For each line written, it represents one turn. The syntax is the following :
Lx-y with x the id of the ant and y his location (room's name)

lemin's People

Contributors

pablo-a avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.