[GH-ISSUE #1569] [Feature]: Blackjack table game for Conversation chats #1549

Closed
opened 2026-10-23 04:02:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Romuromylus on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1569

Originally assigned to: @Romuromylus on GitHub.

What problem does this solve?

Conversation chats have six table games (UNO, Chess, Poker, 8-Ball Pool, Tic-Tac-Toe and Rock-Paper-Scissors), but no casino game you play against the house. Blackjack is the most requested one I've seen: quick rounds, simple rules, and it works with any number of characters at the table, including just you and one character dealing.

Proposed package or change

A new blackjack turn-game package for Conversation mode, built on the same turn-game framework as Poker:

  • /blackjack, the games picker, and "let's play blackjack" open a setup modal.
  • You and up to six characters each play your own hands against the house. The engine plays the dealer.
  • Optional character dealer: a character calls each round in their own voice (place your bets, the deal, the dealer's hand and the payouts), the same way Poker's dealer works. A seated dealer plays no hand, so "you against a character dealer" is a valid table.
  • Rules: hit, stand, double on any two cards, split a pair once (split aces take one card each), dealer peeks for blackjack, blackjack pays 3 to 2, and a house rule toggle for the dealer hitting or standing on soft 17.
  • Table settings: starting chips, minimum bet, decks in the shoe (1 to 8), and an optional round limit. The shoe is reshuffled from the game seed every round, so editing or regenerating a message redeals the same cards.
  • Characters see their own hand, every face-up card on the table and the dealer's up card, never the hole card, and bet and play through a single blackjack_action tool.

The engine, board, setup, hook and store are package-owned under packages/blackjack/src/engine and build through build-feature-packages.mjs like the other games, against the Engine host (Capability API 1.341). I'd ship it staging-only first so testers can try it before it reaches stable.

Why should this be optional?

Like the other Conversation games, it's a self-contained feature only some users want. It ships its own client and server code and needs no Engine route or database change, because the turn-game runner, persistence and /turn-games REST surface are game-agnostic.

Alternatives considered

Adding it to the Engine directly, which is the opposite direction from the package split. Characters starting a game on their own ([blackjack]) needs a small Engine change, because the per-game command toggles and prompt lines in Chat Settings are still hard-coded per game. That's a follow-up on the Engine side; the package already registers the [blackjack] tag, so the Engine only needs to advertise it.

Additional context

Artwork follows the existing Mari covers (art direction entry plus the generation prompt in artwork/sources/).

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Romuromylus on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1569 Originally assigned to: @Romuromylus on GitHub. ## What problem does this solve? Conversation chats have six table games (UNO, Chess, Poker, 8-Ball Pool, Tic-Tac-Toe and Rock-Paper-Scissors), but no casino game you play against the house. Blackjack is the most requested one I've seen: quick rounds, simple rules, and it works with any number of characters at the table, including just you and one character dealing. ## Proposed package or change A new `blackjack` turn-game package for Conversation mode, built on the same turn-game framework as Poker: - `/blackjack`, the games picker, and "let's play blackjack" open a setup modal. - You and up to six characters each play your own hands against the house. The engine plays the dealer. - Optional character dealer: a character calls each round in their own voice (place your bets, the deal, the dealer's hand and the payouts), the same way Poker's dealer works. A seated dealer plays no hand, so "you against a character dealer" is a valid table. - Rules: hit, stand, double on any two cards, split a pair once (split aces take one card each), dealer peeks for blackjack, blackjack pays 3 to 2, and a house rule toggle for the dealer hitting or standing on soft 17. - Table settings: starting chips, minimum bet, decks in the shoe (1 to 8), and an optional round limit. The shoe is reshuffled from the game seed every round, so editing or regenerating a message redeals the same cards. - Characters see their own hand, every face-up card on the table and the dealer's up card, never the hole card, and bet and play through a single `blackjack_action` tool. The engine, board, setup, hook and store are package-owned under `packages/blackjack/src/engine` and build through `build-feature-packages.mjs` like the other games, against the Engine host (Capability API 1.341). I'd ship it staging-only first so testers can try it before it reaches stable. ## Why should this be optional? Like the other Conversation games, it's a self-contained feature only some users want. It ships its own client and server code and needs no Engine route or database change, because the turn-game runner, persistence and `/turn-games` REST surface are game-agnostic. ## Alternatives considered Adding it to the Engine directly, which is the opposite direction from the package split. Characters starting a game on their own (`[blackjack]`) needs a small Engine change, because the per-game command toggles and prompt lines in Chat Settings are still hard-coded per game. That's a follow-up on the Engine side; the package already registers the `[blackjack]` tag, so the Engine only needs to advertise it. ## Additional context Artwork follows the existing Mari covers (art direction entry plus the generation prompt in `artwork/sources/`). ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@Romuromylus commented on GitHub (Oct 22, 2026):

Shipped in #1570, merged into staging as 07504e9f4. Blackjack is staging-only for now, so it shows up in the preview catalog while testers try it.

<!-- gh-comment-id:6353274257 --> @Romuromylus commented on GitHub (Oct 22, 2026): Shipped in #1570, merged into staging as 07504e9f4. Blackjack is staging-only for now, so it shows up in the preview catalog while testers try it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1549
No description provided.