{
  "name": "minesweeper",
  "kind": "registry",
  "title": "Minesweeper",
  "description": "Classic Minesweeper in the panel, played with the mouse as in the original or one-handed on the arrows. The board, the clock and your best times persist.",
  "version": "0.2.0",
  "icon": {
    "tile": {
      "glyph": "󰚑",
      "bg": "slate"
    }
  },
  "author": "pal",
  "spec": "github:zcag/pal/extensions/minesweeper@v0.18.11",
  "source": "https://github.com/zcag/pal-games/tree/HEAD/minesweeper",
  "commit": "a1b2399a1c0f10f03ce4d06912a6a4c0d2512106",
  "manifest": {
    "name": "minesweeper",
    "title": "Minesweeper",
    "description": "Classic Minesweeper in the panel, played with the mouse as in the original or one-handed on the arrows. The board, the clock and your best times persist.",
    "version": "0.2.0",
    "icon": {
      "tile": {
        "glyph": "󰚑",
        "bg": "slate"
      }
    },
    "author": "pal",
    "repo": "bundled",
    "license": "MIT",
    "settings": [
      {
        "kind": "select",
        "id": "difficulty",
        "label": "Difficulty",
        "description": "The board's size and mines, also picked on the board itself (D, or a click on the level). Applies to the next board, at once when nothing is open yet; a game in progress plays out first.",
        "options": [
          {
            "id": "beginner",
            "title": "Beginner: 9 by 9, 10 mines"
          },
          {
            "id": "intermediate",
            "title": "Intermediate: 16 by 16, 40 mines"
          },
          {
            "id": "expert",
            "title": "Expert: 30 by 16, 99 mines"
          }
        ],
        "default": "beginner"
      },
      {
        "kind": "boolean",
        "id": "clock",
        "label": "Clock",
        "text": "Show the time while you play",
        "description": "Off hides the time beside the face. Your times still count for best times and show when you clear a board. Also T or ⌘K in the game.",
        "default": true
      }
    ],
    "sync": {
      "state": "local",
      "records": {
        "fields": {
          "beginner": {
            "fields": {
              "played": "sum",
              "won": "sum"
            }
          },
          "intermediate": {
            "fields": {
              "played": "sum",
              "won": "sum"
            }
          },
          "expert": {
            "fields": {
              "played": "sum",
              "won": "sum"
            }
          }
        }
      },
      "best-beginner": "min",
      "best-intermediate": "min",
      "best-expert": "min"
    },
    "leaderboards": [
      {
        "id": "daily",
        "title": "Daily board",
        "order": "asc",
        "format": "time",
        "period": "day",
        "min": 1,
        "max": 86400
      },
      {
        "id": "beginner",
        "title": "Beginner",
        "order": "asc",
        "format": "time",
        "min": 0.2,
        "max": 86400
      },
      {
        "id": "intermediate",
        "title": "Intermediate",
        "order": "asc",
        "format": "time",
        "min": 1,
        "max": 86400
      },
      {
        "id": "expert",
        "title": "Expert",
        "order": "asc",
        "format": "time",
        "min": 5,
        "max": 86400
      }
    ],
    "store": {
      "tagline": "Classic Minesweeper, by mouse or one hand on the arrows",
      "category": "fun",
      "features": [
        "The classic board, mine counter and clock, redrawn for the light and dark panel",
        "Mouse as in the original: click opens, right-click flags, both buttons open around a number",
        "One hand: the arrows move, `enter` opens, `/` flags, `n` starts over, `d` picks the level",
        "The first click is always safe; beginner, intermediate and expert, each with a best time",
        "Leave at any point and the game waits, across restarts; `t` hides the clock",
        "A daily board, the same mines for everyone that day (`Y`); signed in to pal, your record and best times follow you, and wins go on leaderboards: the day's fastest and the fastest at each level"
      ],
      "permissions": [],
      "platforms": [
        "macos",
        "linux"
      ],
      "screenshots": [
        {
          "file": "1-board.png",
          "caption": "Mid-game on beginner: the mine counter, the face and the clock, the best time and the won count, the keys under the board"
        },
        {
          "file": "2-won.png",
          "caption": "Cleared: the mines left are flagged, the time, a new best"
        },
        {
          "file": "3-lost.png",
          "caption": "A mine went off on intermediate: every mine shows, a wrong flag is crossed out",
          "cover": [
            492,
            314,
            456,
            224
          ]
        },
        {
          "file": "4-expert.png",
          "caption": "Expert, 30 by 16 with 99 mines, scaled to the panel; Enter on the satisfied 2 opens around it"
        }
      ],
      "actions": [
        {
          "title": "Up, Down, Left, Right",
          "description": "Move the cursor. `k`, `j`, `h`, `l` too.",
          "keys": "up, down, left, right"
        },
        {
          "title": "Open",
          "description": "On a number whose flags are all placed, opens the cells around it. A new game once the game is over.",
          "keys": "enter"
        },
        {
          "title": "Flag",
          "description": "Or unflag. `f` and `space` too.",
          "keys": "/"
        },
        {
          "title": "New game",
          "description": "A fresh board; asks first mid-game. A click on the face starts one at once.",
          "keys": "n"
        },
        {
          "title": "Daily board",
          "description": "Intermediate, the same mines for everyone until midnight UTC; the first open is the middle. A win goes on the day's board. Asks first mid-game.",
          "keys": "y"
        },
        {
          "title": "Difficulty",
          "description": "The level picker: left and right choose, Enter takes it (asking first mid-game), D again closes it.",
          "keys": "d"
        },
        {
          "title": "Hide the clock",
          "description": "No running time on screen; again to bring it back. Times still count.",
          "keys": "t"
        }
      ],
      "play": true
    },
    "palettes": {
      "minesweeper": {
        "title": "Minesweeper",
        "kind": "view",
        "description": "The board, the extension's own page. Escape leaves mid-game; the board and the clock wait for you.",
        "keys": [
          {
            "keys": "up",
            "title": "Move (also down, left, right, and hjkl)"
          },
          {
            "keys": "enter",
            "title": "Open; on a satisfied number, open around it; a new game once the game is over"
          },
          {
            "keys": "/",
            "title": "Flag or unflag (also f, space)"
          },
          {
            "keys": "n",
            "title": "New game, asking first mid-game"
          },
          {
            "keys": "y",
            "title": "The daily board, asking first mid-game"
          },
          {
            "keys": "d",
            "title": "Pick the level (left, right, Enter)"
          }
        ]
      }
    }
  },
  "playable": true,
  "updated_at": "2026-11-22T01:38:11Z",
  "url": "https://pal.cagdas.io/extensions/minesweeper",
  "tagline": "Classic Minesweeper, by mouse or one hand on the arrows",
  "category": "fun",
  "screenshots": [
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/1-board-dark.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/1-board.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/2-won-dark.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/2-won.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/3-lost-dark.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/3-lost.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/4-expert-dark.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/4-expert.png"
  ],
  "panel_screenshots": [
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/1-board.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/2-won.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/3-lost.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/4-expert.png"
  ],
  "bar_screenshots": [],
  "panel_screenshots_dark": [
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/1-board-dark.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/2-won-dark.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/3-lost-dark.png",
    "https://pal.cagdas.io/extensions/minesweeper/screenshots/4-expert-dark.png"
  ],
  "bar_screenshots_dark": [],
  "has_bar": false,
  "bar_items": [],
  "has_links": false,
  "links": [],
  "multi": false,
  "has_readme": true
}
