PBO A - FOXES AND RABBIT

1. Tampilan class 2. 0 step 3. 1 step 4. 11 step 5. Long step (selesai) SOURCE CODE : 1. Simulator import java.util.Random; import java.util.List; import java.util.ArrayList; import java.util.Iterator; import java.awt.Color; public class Simulator { private static final int DEFAULT_WIDTH = 50; private static final int DEFAULT_DEPTH = 50; private static final double FOX_CREATION_PROBABILITY = 0.02; private static final double RABBIT_CREATION_PROBABILITY = 0.08; private List<Rabbit> rabbits; private List<Fox> foxes; private Field field; private int step; private SimulatorView view; public Simulator() { this(DEFAULT_DEPTH, DEFAULT_WIDTH); } public Simulator(int depth, int width) { if(width <= 0 || depth <= 0) { System.out.println("The dimensions must be greater than zero."); System.out.println("Using defaul...