Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getObstacleArea(firstObs)
- {
- var area = 1;
- for (var cell in getCellsAroundCell(cell, 1))
- {
- area += getObstacleArea(cell);
- }
- area;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement