(int row, int col)
| 75 | |
| 76 | // is the site (row, col) full? |
| 77 | public boolean isFull(int row, int col) { |
| 78 | validate(row, "row"); |
| 79 | validate(col, "col"); |
| 80 | return isOpen(row, col) && uf1.find(getSite(row, col)) == uf1.find(0); |
| 81 | } |
| 82 | |
| 83 | // returns the number of open sites |
| 84 | public int numberOfOpenSites() { |