pushmemory adds a new value to the player 's memory array . if the player 's memory is already full , this will push out the oldest memory . just like in real life . concode_field_sep float misanthropy concode_elem_sep int life_points concode_elem_sep float optimism concode_elem_sep float PROB_MUTATION concode_elem_sep int total_life concode_elem_sep int memory_span concode_elem_sep ArrayList<Float> memories concode_elem_sep float certainty concode_elem_sep Random prng concode_elem_sep int cooperate concode_elem_sep int defect concode_field_sep int getDecision concode_elem_sep int getDecision concode_elem_sep int getLP concode_elem_sep void increaseLP concode_elem_sep void setLP concode_elem_sep void setMisanthropy concode_elem_sep Player birth concode_elem_sep void setCertainty concode_elem_sep float getCertainty concode_elem_sep void main concode_elem_sep void setMemory concode_elem_sep int getMemory concode_elem_sep void amnesia concode_elem_sep void setPRNG concode_elem_sep ArrayList<Float> getMemories concode_elem_sep float getMisanthropy
void function ( float arg0 ) { Collections . rotate ( memories , - 1 ) ; memories . set ( memory_span - 1 , arg0 ) ; }