Advertisement
goodwin64

HWM - print field cells

Nov 28th, 2023 (edited)
982
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // works during the battle;
  2. // if you're in the "view" mode - hover over the active stack and use `window.mapzz` instead
  3. function printFieldCells() {
  4.     var result = '';
  5.     window.map.forEach((c, i) => {
  6.         if (i % window.defxn === 0) {
  7.             result += '\n'
  8.         }
  9.         result += String(c).padEnd(5);
  10.     })
  11.     return result;
  12. }
  13.  
  14. console.log(printFieldCells())
Tags: hwm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement