A simulation involving a criminal, a civilian, a police officer and a firefighter. My final project for the AOSE class.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 46bb96b Oct 11, 2018
Permalink
Failed to load latest commit information.
css Initial commit Oct 11, 2018
img Initial commit Oct 11, 2018
js Initial commit Oct 11, 2018
.gitignore Initial commit Oct 11, 2018
LICENSE Initial commit Oct 11, 2018
README.md Update README.md Oct 11, 2018
index.html Initial commit Oct 11, 2018
screen.png Initial commit Oct 11, 2018

README.md

AOSE - Agent-Oriented Software Engineering

This is my final project for the AOSE class. It's a simulation involving a criminal, a civilian, a fire fighter and a police officer.

Screenshot of the simulation

You can watch the simulation here

Meet The Agents

The Criminal

  • Moves randomly across the board in any four directions: up, down, left and right.
  • Has a 1/6 chances of starting a fire.
  • Can get trapped in his own fire.
  • Can walk in the Police Officer and get arrested.

The Civilian

  • Moves from top to bottom, left to right. When he reaches the bottom, he goes back to the top.
  • If he sees a fire he stops and calls the Firefighter.
  • If he sees the criminal, he calls the Police Officer informing the position he saw him.

The Firefighter

  • Stays still until called about a fire.
  • When called, move to the position where the fire was spoted.
  • If he passes another fire in the way, he puts it out.
  • If he sees the Criminal, he calls the Police Officer informing the position he saw him.

The Police Officer

  • Stays still until called about the Criminal.
  • When called, he moves to the position the criminal was last seen.
  • If he sees a fire he stop and calls the Firefighter.
  • If he sees the criminal he arrestes him.

The simulation is over when the criminal gets arrested.