SoftwareSystemDesign / simulated-evolution

Artificial Life Simulation of Bacteria Motion depending on DNA
https://java.woehlke.org/kurzweil/simulated-evolution/
Apache License 2.0
0 stars 6 forks source link

LifeCycle.java : Extract method #11

Closed skele2k closed 1 year ago

skele2k commented 1 year ago

1 Extracted hard to understand expression into seperate method and gave self explanatory names. ex) isHungry(), isOld() etc. 2 Variable FULL_AGE doesn't have accurate meaning, thus replaced the variable name with ADULT_AGE