My simulation is hunting based. There are two classes: Deer and Hunter. Deer acts by aging, moving, breeding and dying. But the hunter is a little more complex. A hunter shoots a certain number of times (6 in my case) before it has to reload. When the hunter shoots it can move afterwards. But if the hunter is reloading, it cannot shoot and cannot move. The shots travel a distance given in the SHOT_RANGE (20 in my case) that is how many locations to travel past when shot. Any deer found in these locations will be killed.
How to start:
Launch compiled jar file with:
java -jar (name of file)
For Linux distributions:
javac Main.java
java Main
Commands:
simulateOneStep ---> This runs one step of the simulation.
simulate x (where x is a positive integer) ---> This runs the simulation for x steps.
runLongSim ---> This runs a simulation of 500 steps.
reset ---> This resets the simulation to step 0.
quit ---> This quits the program.