{"id":22624687,"url":"https://github.com/barrettotte/bootjack","last_synced_at":"2025-09-04T18:21:40.717Z","repository":{"id":114089634,"uuid":"432545386","full_name":"barrettotte/bootjack","owner":"barrettotte","description":"A bootable Blackjack written in 508 bytes","archived":false,"fork":false,"pushed_at":"2021-12-12T00:34:35.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-11T10:37:34.692Z","etag":null,"topics":["blackjack","boot-sector","boot-sector-game"],"latest_commit_sha":null,"homepage":"","language":"Assembly","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/barrettotte.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":"2021-11-27T19:10:34.000Z","updated_at":"2024-12-25T01:18:01.000Z","dependencies_parsed_at":"2023-06-12T13:45:17.902Z","dependency_job_id":null,"html_url":"https://github.com/barrettotte/bootjack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/barrettotte/bootjack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2Fbootjack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2Fbootjack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2Fbootjack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2Fbootjack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barrettotte","download_url":"https://codeload.github.com/barrettotte/bootjack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2Fbootjack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273651238,"owners_count":25143991,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["blackjack","boot-sector","boot-sector-game"],"created_at":"2024-12-09T00:17:27.956Z","updated_at":"2025-09-04T18:21:40.689Z","avatar_url":"https://github.com/barrettotte.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bootjack\n\nA bootable Blackjack written in 508 bytes.\n\n![docs/bootjack.png](docs/bootjack.png)\n\n## Limitations\n\nThis is a minimal blackjack so its single deck and missing bets, splits, etc.\n\nI ran out of space to print scores per round, but blackjack isn't hard to calculate.\n\nI also ran out of space for good prompts, so when its the player's turn:\n`h=hit`, `q=quit`, and any other char is considered a stand.\n\nThe same type of logic exists for when the game is over. `q=quit` and any other\nchar is considered to be \"play again\".\n\n## Running Locally\n\nBuild and run via QEMU with - `make qemu`\n\nI also made a little C prototype in [c/](c/) that can be \nrun with - `gcc c/blackjack.c -Wall -o blackjack; ./blackjack`.\n\n## References\n\n- [Programming Boot Sector Games - Toledo Gutierrez](https://www.amazon.com/Programming-Sector-Games-Toledo-Gutierrez/dp/0359816312)\n- [x86 instructions](https://www.felixcloutier.com/x86/)\n- [Linear congruential generator](https://en.wikipedia.org/wiki/Linear_congruential_generator)\n- [Interrupt table for BIOS/DOS](https://stanislavs.org/helppc/int_table.html)\n- [PC Interrupts: A Programmer's Reference to BIOS, DOS, and Third Party Calls - Ralf Brown](https://www.amazon.com/PC-Interrupts-Programmers-Reference-Third-dp-0201577976/dp/0201577976)\n- [Code page 437](https://en.wikipedia.org/wiki/Code_page_437)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrettotte%2Fbootjack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarrettotte%2Fbootjack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrettotte%2Fbootjack/lists"}