Giter Club home page Giter Club logo

lem_in's Introduction

screen shot 2018-09-12 at 10 35 58

Summary: This project is meant to make you code an ant farm manager.

EDIT: The instructions for this project have since been changed meaning that my implementation would no longer pass. I used a overcomplicated method of storing the information which made the processing speed slow and it used only one path for all ants rather than using multiple paths to get to the end point faster.

Lem-in was descibed in the brief as being a Hex-sym. A simulation of the movement of ants but was essentially a path finding task as all the ants started in one room and needed to get to the end room without traffic jams meaning that there could only be one ant per room at any given time and each ant could only move once per turn. I don't think ive ever heard of a real ant that waits its turn, that is irrelevant.

screen shot 2018-09-12 at 10 44 22

Above is an example of a valid map. A big part of this project was the error management. So checking for invalid maps, inputs, number of ants and other intricacies took some time. Once all the error checking was done we could move the ants. Below shows the output by lem-in first giving back the map, comments and commands then showing how the ants got across the map. The colour was a bonus that I had built in if the ##colour or ##color commands were present.

screen shot 2018-09-12 at 10 37 47

lem_in's People

Watchers

 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.