anchor.diff:              lists:foreach(fun refit/1, Pop),
               ok
       end.
  +
  +
  +test() ->
  +    simulate_run((random_genotype_fn(nil))()).
  
positive.code:             G
      end.
  
  gen_fit(_G) ->
      rand_between(0, 100).
  
  refit(#ptype{gtype = G, ref = Ref} = P) ->
      Fitness = gen_fit(G),
  
negative.code: -module(cognitive).
  -import(genetica_utils, [clamp/3, rand_between/2, zip/2]).
  -export([random_genotype_fn/1, phenotype_to_genotype_fn/1,
           genotype_to_phenotype_fn/1, fitness_fn/1, crossover_fn/1,
           mutation_fn/1, analyze_fn/2]).
  -compile(export_all).
  
  -record(ptype, {ref, gtype}).
  -record(vertex, {name, tau, sigma, gain}).
  -record(vstate, {o = 0, y = 0}).
  -record(edge, {from, to}).
  -record(block, {size, x, y}).
  
  -define(AREA_HEIGHT, 15).
  -define(AREA_WIDTH, 30).
  -define(TRACKER_SIZE, 5).
  -define(BLOCK_MAX_SIZE, 6).
  
  rand_node(Name) ->
      #vertex{name = Name, sigma = rand_between(-10, 0),
  