{
  "id": 6286580,
  "title": "The Depths of JavaScript: Minesweeper in 247 Bytes",
  "url": "https://urgent.news/2026/09/08/the-depths-of-javascript-minesweeper-in-247-bytes",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-08T14:33:25.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://yui.dev/blog/minesweeper-in-247-bytes"
  },
  "original_language": "en",
  "account": "This 247-byte JavaScript code generates a minimal version of Minesweeper in a web browser. It features an 8x8 randomly generated board, cell opening with left-click, flag toggling with right-click, recursive opening of zero neighboring mine cells, and basic win detection. The code consists of two main functions: 'b', which handles game logic, and 'm', which generates the UI and board. The UI and board are initialized using a single event listener, 'onmouseup', which uses the 'event.which' property to determine which mouse button was pressed. The code utilizes clever tricks such as defining the 'm' function inside the 'b' function call, ignoring an argument to save bytes, and using the '??=' operator to initialize the board and mines.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}