You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Play a classic game of Blackjack (21) against the dealer, right in the chat. A JS skill that uses run_js to run a full blackjack game engine. The LLM acts as the dealer and manages game state across turns.
Skill Type: JS skill
Features:
Deal — deals two cards each to player and dealer (one face-down)
Hit — draw another card, with automatic bust detection
Stand — dealer reveals and draws to 17, then determines winner
Natural blackjack detection and push handling
Hidden card encoding so the LLM cannot peek at the dealer's hole card
Example prompts:
"Play blackjack"
"Hit"
"Stand"
"Deal me in"
How to use
Load this skill in the Google AI Edge Gallery app using the webhost path above, then try prompts like "Play blackjack". The skill uses a hidden card encoding scheme (prefixing with "x") so the on-device LLM cannot "see" the dealer's hole card. Each action returns the full game state as text. The LLM passes card state back on each turn using the exact values from the previous result.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Skill Webhost Path
https://blayer.github.io/ai-edge-skills/blackjack/
Skill Source Repository
https://github.com/blayer/ai-edge-skills/tree/main/docs/blackjack
Skill Description
🃏 Blackjack
Play a classic game of Blackjack (21) against the dealer, right in the chat. A JS skill that uses
run_jsto run a full blackjack game engine. The LLM acts as the dealer and manages game state across turns.Skill Type: JS skill
Features:
Example prompts:
How to use
Load this skill in the Google AI Edge Gallery app using the webhost path above, then try prompts like "Play blackjack". The skill uses a hidden card encoding scheme (prefixing with "x") so the on-device LLM cannot "see" the dealer's hole card. Each action returns the full game state as text. The LLM passes card state back on each turn using the exact values from the previous result.
Example screenshots:
Beta Was this translation helpful? Give feedback.
All reactions