Elise Bargman, Ally R. Entirely pair programmed.
Created a simple organism modeling program that simulates a population containing three classes of organisms (defectors, cooperators, and partial cooperators) as they compete to survive and reproduce.
We made two main methods in order to handle testing: ALifeSim and ALifeSimExpt. Our ALifeSim class is the same as what the assignment asked for. Our ALifeSimExpt class semi-automates the testing process required for the assignment. It takes similar input as ALifeSim, but does not take a population size. Instead, it runs ALifeSim with the given inputs for population sizes 10 and 100, for ten trials each (with different seeds each time.)
- Random values: https://docs.oraecle.com/javase/7/docs/api/java/util/Random.html
- Subclasses: https://www.cs.grinnell.edu/~rebelsky/Courses/CSC207/2019S/02/readings/inheritance.html
- https://stackoverflow.com/questions/32277110/using-random-number-generator-with-current-time-vs-without#
- https://docs.oraecle.com/javase/7/docs/api/java/util/Random.html
- parseInt: https://stackoverflow.com/questions/5585779/how-do-i-convert-a-string-to-an-int-in-java
- NullPointerException: https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it