{"id":26978671,"url":"https://github.com/scriptedbutton/card-game","last_synced_at":"2026-04-15T15:39:45.423Z","repository":{"id":280520453,"uuid":"942266211","full_name":"ScriptedButton/card-game","owner":"ScriptedButton","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-03T21:54:51.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T22:27:14.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScriptedButton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-03T20:53:24.000Z","updated_at":"2025-03-03T21:54:55.000Z","dependencies_parsed_at":"2025-03-03T22:37:17.246Z","dependency_job_id":null,"html_url":"https://github.com/ScriptedButton/card-game","commit_stats":null,"previous_names":["scriptedbutton/card-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptedButton%2Fcard-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptedButton%2Fcard-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptedButton%2Fcard-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptedButton%2Fcard-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptedButton","download_url":"https://codeload.github.com/ScriptedButton/card-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247011411,"owners_count":20868884,"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":[],"created_at":"2025-04-03T13:39:35.974Z","updated_at":"2026-04-15T15:39:40.382Z","avatar_url":"https://github.com/ScriptedButton.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blackjack 21 - Card Game\n\nA modern implementation of the classic Blackjack card game using the qrandom.io API for truly random card shuffling.\n\n## Features\n\n- Classic Blackjack gameplay\n- Real card shuffling using the qrandom.io quantum random number generator API\n- Modern UI with card flip animations\n- Full game state management\n- Betting system with balance tracking\n- Mobile-responsive design\n\n## Technology Stack\n\n- **Framework**: Next.js 15\n- **Language**: TypeScript\n- **Styling**: Tailwind CSS\n- **Components**: Shadcn UI\n- **API**: qrandom.io for card shuffling\n\n## Game Rules\n\n- Each player starts with two cards. The dealer gets one face-up and one face-down card.\n- Number cards (2-10) are worth their face value. Face cards (Jack, Queen, King) are worth 10 points.\n- Aces can be worth either 1 or 11 points, whichever is better for your hand.\n- Players can \"Hit\" to draw additional cards or \"Stand\" to keep their current hand.\n- If a player's hand exceeds 21 points, they \"bust\" and lose the round.\n- After the player stands, the dealer reveals their face-down card and must hit until their hand totals 17 or more points.\n- If the dealer busts, the player wins. Otherwise, the higher point total wins.\n- A \"Blackjack\" (an Ace with a 10-point card) pays 3:2 on the player's bet.\n- If both the player and dealer have the same point total, it's a \"push\" (tie) and the bet is returned.\n\n## Getting Started\n\n1. Clone the repository\n2. Install dependencies with `npm install`\n3. Run the development server with `npm run dev`\n4. Open [http://localhost:3000](http://localhost:3000) in your browser\n\n## API Integration\n\nThis project uses the qrandom.io API to get truly random shuffled decks of cards. The main endpoints are:\n\n- `GET /api/random/deck` - Shuffle a deck of cards\n- `GET /api/random/deck/:resultId/show` - Get a specific card from the deck\n- `GET /api/random/deck/:resultId/all` - Get all cards from the shuffled deck\n\n## Deployment\n\nThe application can be deployed with the following steps:\n\n1. Build the application with `npm run build`\n2. Start the production server with `npm start`\n\n## Learn More\n\nTo learn more about the technologies used in this project, check out the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs)\n- [TypeScript Documentation](https://www.typescriptlang.org/docs/)\n- [Tailwind CSS Documentation](https://tailwindcss.com/docs)\n- [Shadcn UI Documentation](https://ui.shadcn.com)\n- [qrandom.io API Documentation](https://qrandom.io/documentation)\n\n## License\n\nThis project is open source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptedbutton%2Fcard-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptedbutton%2Fcard-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptedbutton%2Fcard-game/lists"}