> For the complete documentation index, see [llms.txt](https://doc.lucky-cycle.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.lucky-cycle.com/games/index/black-jack.md).

# Black-Jack

{% hint style="warning" %}
Demo: <https://campaigns.lucky-cycle.com/utils/games?game=black-jack>
{% endhint %}

1. [#configuration](#configuration "mention")
2. [#options](#options "mention")
3. [#assets](#assets "mention")

### Configuration

<details>

<summary>JSON</summary>

```json
{
  "options": {
    "background_color": "transparent",
    "big_win_id": "1234"
  },
  "texts": {
    "en": {
      "play_button": "Play now",
      "game": {
        "dealer": "Bank",
        "player": "Your hand"
      }
    },
    "fr": {
      "play_button": "Je joue",
      "game": {
        "dealer": "Banque",
        "player": "Votre main"
      }
    },
    "nl": {
      "play_button": "Speel nu",
      "game": {
        "dealer": "Bank",
        "player": "Jouw hand"
      }
    }
  },
  "images": {
    "background_image": GAME_URL + "/background.png",
    "cards": {
      "2": GAME_URL + "/2.png",
      "3": GAME_URL + "/3.png",
      "4": GAME_URL + "/4.png",
      "5": GAME_URL + "/5.png",
      "6": GAME_URL + "/6.png",
      "7": GAME_URL + "/7.png",
      "8": GAME_URL + "/8.png",
      "9": GAME_URL + "/9.png",
      "10": GAME_URL + "/10.png",
      "J": GAME_URL + "/jack.png",
      "Q": GAME_URL + "/queen.png",
      "K": GAME_URL + "/king.png",
      "11": GAME_URL + "/ace.png",
      "back": GAME_URL + "/back.png"
    },
    "rewards": {}
  }
}
```

</details>

### Options

<table><thead><tr><th>Key</th><th>Type</th><th>Explanation</th><th>Default</th></tr></thead><tbody><tr><td><pre><code>background_color
</code></pre></td><td>String</td><td>Background color (visible if no image).</td><td>"transparent"</td></tr><tr><td><pre><code>big_win_id
</code></pre></td><td>String</td><td>ID of a reward to trigger the special pair (figure + ace).</td><td>"1234"</td></tr><tr><td><pre><code>play_button
</code></pre></td><td>String</td><td>Text for the button that is displayed at the start of the game.</td><td>"Play now" / "Je joue" / "Speel nu"</td></tr><tr><td><pre><code>game > dealer
</code></pre></td><td>String</td><td>Text for the dealer's hand.</td><td>"Bank" / "Banque" / "Bank"</td></tr><tr><td><pre><code>game > player
</code></pre></td><td>String</td><td>Text for the player's hand.</td><td>"Your hand" / "Votre main" / "Jouw hand"</td></tr></tbody></table>

### Assets

<table><thead><tr><th>Key</th><th>Size</th><th>Explanation</th><th>Default</th></tr></thead><tbody><tr><td><pre><code>background_image
</code></pre></td><td>500 x 500px <mark style="color:orange;">(may be cropped depending the screen)</mark>.</td><td>Background of the game.</td><td><a href="https://statics.lucky-cycle.com/files/_games/black-jack/background.png">/background.png</a></td></tr><tr><td><pre><code>cards > 2
...
cards > 11
</code></pre></td><td>150 x 200px</td><td>Cards (front).</td><td><a href="https://statics.lucky-cycle.com/files/_games/black-jack/ace.png">/ace.png</a></td></tr><tr><td><pre><code>cards > back
</code></pre></td><td>150 x 200px</td><td>Card back.</td><td><a href="https://statics.lucky-cycle.com/files/_games/black-jack/back.png">/back.png</a></td></tr></tbody></table>
