Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.17 KB | None | 0 0
  1.     private MapCell nextCell(MapCell cell) {
  2.         for(int i = 0; i<=3; i++) {
  3.             if(cell.getNeighbour(i).isMarked()) {
  4.                 return cell.getNeighbour(i);
  5.             }
  6.         }
  7.         return null;
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement