Advertisement
pierrotdu18

Untitled

Aug 10th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getObstacleArea(firstObs)
  2. {
  3.     var area = 1;
  4.     for (var cell in getCellsAroundCell(cell, 1))
  5.     {
  6.         area += getObstacleArea(cell);
  7.     }
  8.     area;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement