Guest User

Untitled

a guest
Mar 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. for (var colIndex=0; colIndex < getRandomInt(minCols,maxCols); colIndex++) {
  2. for (var rowIndex=0; rowIndex < getRandomInt(minRows,maxRows); rowIndex++ ) {
  3. // add a class to this cell so that we know it needs to be an obstacle
  4. $("[data-row='"+rowIndex+"'][data-col='"+colIndex+"']").addClass("blue");
  5. }
  6. }
Add Comment
Please, Sign In to add comment