Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ABM language #1354

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

ABM language #1354

wants to merge 3 commits into from

Commits on May 27, 2022

  1. adding heading information and created move_forward_or_backward funct…

    …ion, which calculates the next position the agent will move. move_forward function, which moves the agent forward by specified amount. move_backward function, which moves the agent backwards by specified amount. turn_right function, turns the agent right by specified degree. turn_left function, turns the agent left by specified degree.
    GaelLucero committed May 27, 2022
    Configuration menu
    Copy the full SHA
    5105dde View commit details
    Browse the repository at this point in the history
  2. Created setxy function which sets the agents position to the specifie…

    …d parameters. set_pos function, sets the current position to the specified pos parameter. distancexy function, gives you the distance of the agent and the given coordinate. distance function, gives you the distance between the agent and another agent.
    GaelLucero committed May 27, 2022
    Configuration menu
    Copy the full SHA
    a6fd559 View commit details
    Browse the repository at this point in the history
  3. Created die function which, removes the agent from the schedule and t…

    …he grid. towardsxy function, calculates angle between a given coordinate and horizon as if the current position is the origin. towards function, calculates angle between an agent and horizon as if the current position is the origin. facexy function, makes agent face a given coordinate. face function, makes agent face another agent
    GaelLucero committed May 27, 2022
    Configuration menu
    Copy the full SHA
    89d6286 View commit details
    Browse the repository at this point in the history