{
  "name": "blackjack",
  "kind": "registry",
  "title": "Blackjack",
  "description": "Blackjack on a felt table with a real shoe, played one-handed with the arrows or with the mouse. Your bankroll and record are kept across restarts.",
  "version": "0.1.0",
  "icon": {
    "tile": {
      "glyph": "󱢡",
      "bg": "red"
    }
  },
  "author": "pal",
  "spec": "github:zcag/pal/extensions/blackjack@v0.17.4",
  "source": "https://github.com/zcag/pal-games/tree/HEAD/blackjack",
  "commit": "16c5a9dde3d14b8761ba1bb6e500b65c262aeda6",
  "manifest": {
    "name": "blackjack",
    "title": "Blackjack",
    "description": "Blackjack on a felt table with a real shoe, played one-handed with the arrows or with the mouse. Your bankroll and record are kept across restarts.",
    "version": "0.1.0",
    "icon": {
      "tile": {
        "glyph": "󱢡",
        "bg": "red"
      }
    },
    "author": "pal",
    "repo": "bundled",
    "license": "MIT",
    "settings": [
      {
        "kind": "number",
        "id": "decks",
        "label": "Decks",
        "description": "Decks in the shoe; it is reshuffled once a quarter is left.",
        "min": 1,
        "max": 8,
        "default": 6
      },
      {
        "kind": "number",
        "id": "starting_bankroll",
        "label": "Starting bankroll",
        "description": "Chips a new game starts with.",
        "min": 10,
        "max": 1000000,
        "step": 10,
        "unit": "$",
        "default": 1000
      },
      {
        "kind": "number",
        "id": "min_bet",
        "label": "Minimum bet",
        "description": "The smallest bet, and the step + and - move it by.",
        "min": 1,
        "max": 10000,
        "unit": "$",
        "default": 10
      },
      {
        "kind": "boolean",
        "id": "dealer_hits_soft_17",
        "label": "Dealer hits soft 17",
        "text": "H17: the dealer draws on a soft 17",
        "description": "Off, the dealer stands on every 17 (S17). Applies from the next hand.",
        "default": false
      },
      {
        "kind": "boolean",
        "id": "insurance",
        "label": "Offer insurance",
        "text": "Ask when the dealer shows an ace",
        "description": "Up or I takes it for half the bet; down or Enter declines. Off, the hand plays on without the question.",
        "default": false
      }
    ],
    "sync": {
      "state": "local",
      "winnings": "sum",
      "stats": {
        "fields": {
          "hands": "sum",
          "wins": "sum",
          "losses": "sum",
          "pushes": "sum",
          "blackjacks": "sum",
          "net": "sum"
        }
      },
      "peak": "max",
      "longest": "max"
    },
    "leaderboards": [
      {
        "id": "bankroll",
        "title": "Biggest bankroll",
        "order": "desc",
        "format": "points",
        "min": 1000,
        "max": 1000000000
      },
      {
        "id": "streak",
        "title": "Longest winning streak",
        "order": "desc",
        "format": "points",
        "min": 1,
        "max": 1000
      }
    ],
    "store": {
      "tagline": "Blackjack on felt, arrows or mouse; the bankroll persists",
      "category": "fun",
      "features": [
        "A casino table in the panel: cards dealt in dealer order, the hole card flipping, chips for the bet",
        "One-handed: arrows set the bet, `enter` deals, then `up` hit, `down` stand, `right` double, `left` split",
        "Every move is a button with its key on it; the title says what happens next",
        "Standard rules: dealer stands on 17, blackjack pays 3:2, double after split; H17 and insurance as settings",
        "Leave with `escape` any time; the hand, the bankroll and the record are there when you come back",
        "Signed in to pal, your chips and record follow you to every machine; the biggest bankroll and the longest winning streak go on leaderboards"
      ],
      "permissions": [],
      "platforms": [
        "macos",
        "linux"
      ],
      "screenshots": [
        {
          "file": "1-blackjack.png",
          "caption": "A blackjack: 3:2 on the $50 bet, the winnings stacked beside it",
          "cover": [
            378,
            270,
            684,
            335
          ]
        },
        {
          "file": "2-hand.png",
          "caption": "Mid-hand after a split: hand 1 is being played, the hole card is face down"
        },
        {
          "file": "3-settled.png",
          "caption": "Settled: the dealer drew and bust, the winnings stacked on the bet, the bankroll moved"
        },
        {
          "file": "4-bet.png",
          "caption": "Placing a bet: the chips on the felt, up and down move it by the minimum, Enter deals"
        }
      ],
      "actions": [
        {
          "title": "Deal",
          "description": "Also Next hand once a hand is settled.",
          "keys": "enter"
        },
        {
          "title": "Hit",
          "keys": "up, h"
        },
        {
          "title": "Stand",
          "description": "Enter stands too.",
          "keys": "down, s"
        },
        {
          "title": "Double down",
          "description": "On the first two cards: one card, then stand.",
          "keys": "right, d"
        },
        {
          "title": "Split",
          "description": "A pair, once; split aces take one card each.",
          "keys": "left, p"
        },
        {
          "title": "Raise the bet",
          "keys": "up, +"
        },
        {
          "title": "Lower the bet",
          "keys": "down, -"
        },
        {
          "title": "Take insurance",
          "description": "Offered on an ace with `insurance` on; down or Enter declines.",
          "keys": "up, i"
        },
        {
          "title": "New game",
          "description": "A fresh bankroll and record; asks first.",
          "keys": "n"
        }
      ],
      "play": true
    },
    "palettes": {
      "blackjack": {
        "title": "Blackjack",
        "kind": "view",
        "description": "The table. Escape leaves mid-hand; the hand is there when you come back.",
        "keys": [
          {
            "keys": "enter",
            "title": "Deal, stand, or the next hand; declines insurance"
          },
          {
            "keys": "up",
            "title": "Hit; raise the bet; take insurance"
          },
          {
            "keys": "down",
            "title": "Stand; lower the bet; no insurance"
          },
          {
            "keys": "right",
            "title": "Double down"
          },
          {
            "keys": "left",
            "title": "Split"
          },
          {
            "keys": "h",
            "title": "Hit"
          },
          {
            "keys": "s",
            "title": "Stand"
          },
          {
            "keys": "d",
            "title": "Double down"
          },
          {
            "keys": "p",
            "title": "Split"
          },
          {
            "keys": "+",
            "title": "Raise the bet"
          },
          {
            "keys": "-",
            "title": "Lower the bet"
          },
          {
            "keys": "i",
            "title": "Take insurance, when offered"
          },
          {
            "keys": "n",
            "title": "New game, after a confirm"
          }
        ]
      }
    }
  },
  "playable": true,
  "updated_at": "2026-11-02T04:38:11Z",
  "url": "https://pal.cagdas.io/extensions/blackjack",
  "tagline": "Blackjack on felt, arrows or mouse; the bankroll persists",
  "category": "fun",
  "screenshots": [
    "https://pal.cagdas.io/extensions/blackjack/screenshots/1-blackjack-dark.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/1-blackjack.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/2-hand-dark.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/2-hand.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/3-settled-dark.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/3-settled.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/4-bet-dark.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/4-bet.png"
  ],
  "panel_screenshots": [
    "https://pal.cagdas.io/extensions/blackjack/screenshots/1-blackjack.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/2-hand.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/3-settled.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/4-bet.png"
  ],
  "bar_screenshots": [],
  "panel_screenshots_dark": [
    "https://pal.cagdas.io/extensions/blackjack/screenshots/1-blackjack-dark.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/2-hand-dark.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/3-settled-dark.png",
    "https://pal.cagdas.io/extensions/blackjack/screenshots/4-bet-dark.png"
  ],
  "bar_screenshots_dark": [],
  "has_bar": false,
  "bar_items": [],
  "has_links": false,
  "links": [],
  "multi": false,
  "has_readme": true
}
