Here’s a link to a similar assignment at Princeton University. The reason I’m supplying this is because it gives a little more diagramming for the concepts involved in Percolation that you could use while drawing out your code. Please only use this as an example and picture for your code:
The purpose of this assignment is to examine your methods of developing algorithms while attained some visual representation/gratification of what your code is actually doing. I will be posting more diagrams of my own soon. Good luck and happy homeworking!