package cellsociety_team05;

public class SegregationSimulation extends Simulation {
	private Grid myGrid;
	private double similar; 

	public SegregationSimulation(Setup setup){
		super(setup);
		similar = 0;
	}
	
	//Need a way to set similarity percentage
	public void setSimilar(double x){
		similar = x;
	}
	
	@Override
	public void updateState(Cell cell) {
		int sim = 0;
		int tot = 0;
		for(Cell nCell: cell.getNeighbors()){
			++tot;
			if(nCell.myCurrentState == cell.myCurrentState){
				++sim;
			}
		}
		if((double)sim/tot < similar){
			//make cell empty and move it elsewhere
		}	
	}

}

@@ -184,16 +184,22 @@
 er(setup
+, null
 );%0A%09%09sim

Fix one last thing, good to run