mwg API
    Preparing search index...

    Function newlyRevealed

    • the cell indices in explored not yet baked into a minimap's texture - pure, so it can be tested without a renderer

      Parameters

      • explored: ReadonlySet<number>
      • alreadyDrawn: ReadonlySet<number>

      Returns number[]

      import { newlyRevealed } from '@datamoc/mw_games/two-d/render';

      const explored = new Set([4, 9, 12]);
      const alreadyDrawn = new Set([4]);

      console.log(newlyRevealed(explored, alreadyDrawn)); // [9, 12]