{"id":20372876,"url":"https://github.com/sidmishraw/google-assistant-blackjack","last_synced_at":"2026-05-16T22:03:15.817Z","repository":{"id":86400577,"uuid":"109892326","full_name":"sidmishraw/google-assistant-blackjack","owner":"sidmishraw","description":"A simple BlackJack game using google assistant","archived":false,"fork":false,"pushed_at":"2017-11-10T09:23:33.000Z","size":78,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T06:48:39.830Z","etag":null,"topics":["black-jack","dialogflow","firebase","game","google-assistant"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidmishraw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-07T21:22:10.000Z","updated_at":"2018-01-22T18:49:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"045cf89b-6c57-4b3a-ba09-6bbade9fd9f3","html_url":"https://github.com/sidmishraw/google-assistant-blackjack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Fgoogle-assistant-blackjack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Fgoogle-assistant-blackjack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Fgoogle-assistant-blackjack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Fgoogle-assistant-blackjack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidmishraw","download_url":"https://codeload.github.com/sidmishraw/google-assistant-blackjack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241921836,"owners_count":20042763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["black-jack","dialogflow","firebase","game","google-assistant"],"created_at":"2024-11-15T01:15:22.931Z","updated_at":"2026-05-16T22:03:15.629Z","avatar_url":"https://github.com/sidmishraw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-assistant-blackjack\nA simple BlackJack game using google assistant.\n\n### Description:\nThe game always allows the user to start first. At the begining of the game, the user is dealt a card. Then, the user has two choices:\n\n1. The user could be dealt a new card from the deck - which could be requested with the help of the command like \"Hit\" or \"deal\" or \"yes\" or \"of course\".\n\n2. The user could stop pass and allow the PC to play the same number of turn and compute their scores.\n\n\u003e Note: The user and PC(Google Assistant app) are the two players of this game.\n\nFollowing scenarios might occur when the cards are being dealt from the deck:\n\n* The score of the cards reaches 21; in such a case, the player playing the game is declared as \"Winner\".\n\n* The current score for the player could exceed the value 21; in such a case, that player is declared the \"Loser\" for that game immediately.\n\n* If both the players have scores below 21, the player with score closest to 21 wins the game.\n\n\nOnce, the User stops playing (pass intent is fired), the PC intitiates its game and plays for the same number of times that the user played - We plan to update the logic to match the real BlackJack game soon!\n\n### A sample script from the simulation:\n\n\u003e Legend: User, Google Assistant(GA), PC(Google Assistant app)\n\nGame#1\n```\nUser: talk to my test app\nGA: Alright. Here's the test version of my test app.\nPC: Black Jack time! You have been dealt the card Queen of Diamond. Now, your score is 10. Hit or Pass?\nUser: hit it\nPC: Daring choice! You have been dealt the card 6 of Diamond. Now, your score is 16. Do you wanna deal again?\nUser: nah\nPC: I played the same number of times. My score was 12. Your score was 16. Hence, You win, congrats!\nGA: my test app left the conversation\n```\n\nGame#2\n```\nUser: talk to my test app\nGA: Okay. Getting the test version of my test app.\nPC: Black Jack time! You have been dealt the card 2 of Hearts. Now, your score is 2. Hit or Pass?\nUser: who did\nPC: Sorry, can you say that again?\nUser: hit it\nPC: Daring choice! You have been dealt the card Ace of Spades. Now, your score is 13. Do you wanna deal again?\nUser: yes\nPC: Daring choice! You have been dealt the card 9 of Club. Now, your score is 12. Do you wanna deal again?\nUser: yes\nPC: Daring choice! You have been dealt the card 2 of Diamond. Now, your score is 14. Do you wanna deal again?\nUser: sure\nPC: Can you say that again?\nUser: of course\nPC: Sorry you toppled, I win haha...\n\nGA: my test app left the conversation\n```\n\n\n\n`- Sid and Gaurav`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidmishraw%2Fgoogle-assistant-blackjack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidmishraw%2Fgoogle-assistant-blackjack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidmishraw%2Fgoogle-assistant-blackjack/lists"}