Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Captain

Diogo Cruz edited this page Nov 17, 2018 · 2 revisions

Captain

The agents of the class Captain (super agents) will be super soldiers, being able to do the same as the soldiers although with less restrictions: they do not have limit of radius of communication. They explore the space, making use of the exemption of restriction of communication to overcome the obstacles imposed, leading the Soldiers groups in the best way to meet the exit. These indicate to each Soldier in his group the position that each one must take initially, as well as the space in which they must search.

General

There is also a special Captain (General), responsible for coordinating the initial distribution of the Captains by the research space and for storing the information of the same distribution. Thus, in the beginning, each Captain asks the General to occupy a certain region of the space and, if it is available, the General responds by authorizing his positioning. Subsequently, it marks this region as occupied and, if another Captain requests this region, the General responds negatively, informing that this region is already occupied.

Clone this wiki locally