(int r, int c)
| 43 | } |
| 44 | |
| 45 | public void removeLocation(int r, int c) { |
| 46 | for (int i = 0; i < remainingMoves.size(); i++) { |
| 47 | Location loc = remainingMoves.get(i); |
| 48 | if (loc.isSameAs(r, c)) { |
| 49 | remainingMoves.remove(i); |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | public Location getLocation(int index) { |
| 55 | return remainingMoves.get(index); |