Basic Surrounding Simulation simulates a bunch of soldiers to surround some buildings. It contains three different types of buildings and four different types of soldiers. They differs in terms of colors.

Soldiers’ first aim is to surround the building that they have the same color. If the building is surrounded with lots of soldiers, they moves towards the building that is surrounded by the least number of soldiers. Also, there are black colored soldiers who do not have a favorite color of building.

Positions of the buildings are random and the soldiers use A* search algorithm to find their pathes.



  • ActionScript 3.0 is used to develop Basic Surrounding Simulation.


Movement of the soldiers may be done animated.