package fun; import java.util.LinkedList; import java.util.Random; public class Life { public static void main(String[] args){ Life life=new Life(args); life.simulate(); } public Life(String[] args){ xdim=Integer.parseInt(args[0]); ydim=Integer.parseInt(args[1]); rounds=Integer.parseInt(args[2]); prob=Float.parseFloat(args[3]); } void simulate(){ grid=new int[xdim][ydim]; int[][] nextGrid=new int[xdim][ydim]; initialize(); LinkedList queue=new LinkedList(); for(int i=0; i10){queue.poll();} // long time=System.nanoTime(); // long next=time+50000000; // while(System.nanoTime()