A square lattice is randomly covered with conducting and blocking sites. Is there a chain of conducting sites connecting the top with the bottom? Connected sites (nearest neighbors) are colored red, conducting sites white and blocking sites black. Enter a number to re-start a search. Details may be found on the internet.
And here is the source-code: Percolation.java
Created with BlueJ 3.0.5 (Java version 1.6.0_26) running on Mac OS X 10.6.8
October 10th, 2011, Martin Lieberherr