Implement a Winner-Take-All mechanism with the artificial organism simulator (AOS). The task is to find and mark the input cell with the highest chemical production by placing cells of type at its location.
The environment consists of a 30 30 grid containing a blast cell and the 4 input cells , and . Input cells of type and ( ) produce the chemicals and , respectively. Each input cell produces chemicals at a different rate. If a cell of type ( ) has maximum chemical production (the highest concentration of chemical or at its location) than output cells of type ( ) should mark its location and no other output cell should be present in the environment. Therefore the type and the location of the remaining output cells indicate the type and the location of the input cell with the highest chemical production (which is the winner of the computation), respectively.
You can use the following competences and reactors for this example:
DivideCompetence, MigrateCompetence, ConstReactor, SourceReactor, DiffSourceReactor and KillReactor.
You can visualize the results of a simulation with the MATLAB script visualize (see README.txt).