Advertisement
calcpage

GridWorldPart3pp16-23.txt

Apr 2nd, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Set 3:
  2. 1) loc1.getRow();
  3. 2) false
  4. 3) (4,4)
  5. 4) 135
  6.  
  7. Set 4:
  8. 1) gr.getOccupiedLocations().size();
  9. gr.getNumRows()*gr.getNumCols()-gr.getOccupiedLocations().size();
  10. 2) Location bob= new Location(10,10);
  11. gr.isValid(bob);
  12. **OR**
  13. gr.isValid(new Location(10,10));
  14. 3) BoundedGrid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement