{"id":20898210,"url":"https://github.com/eat-sleep-code/tiny-bandit","last_synced_at":"2026-04-28T02:32:29.612Z","repository":{"id":65826088,"uuid":"585353725","full_name":"eat-sleep-code/tiny-bandit","owner":"eat-sleep-code","description":"Inspired by the prior Tiny TV project, we are back with Tiny Bandit. Tiny Bandit is a miniaturized version of a casino gaming machine that can support multiple simple games. ","archived":false,"fork":false,"pushed_at":"2023-02-12T21:46:21.000Z","size":41996,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T19:46:54.377Z","etag":null,"topics":["casino","games","python","raspberry-pi","tiny-bandit"],"latest_commit_sha":null,"homepage":"","language":"Python","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/eat-sleep-code.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":"2023-01-05T00:35:09.000Z","updated_at":"2023-03-27T09:00:20.000Z","dependencies_parsed_at":"2023-02-22T21:00:36.465Z","dependency_job_id":null,"html_url":"https://github.com/eat-sleep-code/tiny-bandit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eat-sleep-code/tiny-bandit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Ftiny-bandit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Ftiny-bandit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Ftiny-bandit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Ftiny-bandit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eat-sleep-code","download_url":"https://codeload.github.com/eat-sleep-code/tiny-bandit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Ftiny-bandit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32363629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["casino","games","python","raspberry-pi","tiny-bandit"],"created_at":"2024-11-18T11:09:34.259Z","updated_at":"2026-04-28T02:32:29.564Z","avatar_url":"https://github.com/eat-sleep-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tiny Bandit\n\n![Tiny Bandit logo](images/icon-128.png)\n\nInspired by the prior [Tiny TV](https://github.com/eat-sleep-code/tiny-tv) project, we are back with Tiny Bandit.  Tiny Bandit is a miniaturized version of a casino gaming machine that can support multiple simple games.  \n\nThe initial games that will be included are:\n\n- Slots \n- FlappyBird\u003csup\u003e [1](#credit01)\u003c/sup\u003e \n- Magic 8\u003csup\u003e [2](#credit02)\u003c/sup\u003e    \n---\n\n## Game Development\n\nInterested in adding your own simple game to this project?   If so, here are a few guidelines.\n\n- Your game must be written in Python 3 and utilize the current PyGame library\n- Your game must run in a self-contained sub folder\n- Your game must expose a base class called `Game`\n- Your game must expect no more than two external button inputs (left and right) and/or touchscreen input\n- Your game must use the included `gpio.py` for GPIO interactions \n\n---\n\n## Installation\n\nInstallation of the program, any software prerequisites, as well as the display driver can be completed with the following two-line install script.\n\n```\nwget -q https://raw.githubusercontent.com/eat-sleep-code/tiny-bandit/main/install-tiny-bandit.sh -O ~/install-tiny-bandit.sh\nsudo chmod +x ~/install-tiny-bandit.sh \u0026\u0026 ~/install-tiny-bandit.sh\n```\n\n---\n\n## Audio Settings\n\nIf you are using a USB audio device you may need to edit the `/usr/share/alsa/alsa.conf` file for audio output to function properly.  Set the following values:\n\n```sh\ndefaults.ctl.card 1\ndefaults.pcm.card 1\n```\n---\n\n## Autostart at Bash Login\nTo autostart the program as soon as a Bash shell login occurs, execute the following command:\n\n```\nsudo nano .bashrc\n```\n\nAdd the following line to the end of the file and then save the file:\n\n```\nsudo python3 ~/tiny-bandit/tiny-bandit.py --noX=True\n```\n\n---\n\n## Autostart at Desktop Login\n\nTo autostart the program as soon as the Raspberry Pi OS desktop starts, execute the following command:\n\n```\nsudo nano /etc/xdg/lxsession/LXDE-pi/autostart\n```\n\nAdd the following line to the end of the file and then save the file:\n\n```\n@lxterminal --geometry=1x1 -e sudo python3 /home/pi/tiny-bandit/tiny-bandit.py\n```\n\n---\n\n## To-Do List:\n\n- [X] Display current coins (and freeplays?)\n- [X] Add or deduct coins (and freeplays?)\n- [X] Add jackpot image \n- [X] Add wild image \n- [X] Add actual mask\n- [X] Add splash screen / menu\n- [X] Write install script\n- [X] Add Sounds for FlappyBird\n- [X] Blit text for Magic 8 result\n- [ ] Blit helper text to tell user to click button?\n- [ ] Add icons and menu icons for Lucky Day\n- [ ] Finish Lucky Day\n- [ ] Build physical Tiny Bandit machine and document the process\n- [ ] Ensure buttons are correctly setup to trigger games as appropriate\n- [ ] Add web service integration to allow date-specific promotions and possible Leaderboard\n\n---\n## Credits\n\n1. \u003cspan id=\"credit01\"\u003eFlappyBird\u003c/a\u003e was originally created by [Dong Nguyen](https://dotgears.com).  The instance included in this repository uses unique code, but does repurpose some of the original game's imagery.\n\n2.  \u003cspan id=\"credit02\"\u003eMagic 8\u003c/span\u003e is inspired by [Mattel's Magic 8 Ball](https://shop.mattel.com/collections/family-party-games#filter.ss_filter_tags_subtype=Magic%208%20Ball). ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feat-sleep-code%2Ftiny-bandit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feat-sleep-code%2Ftiny-bandit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feat-sleep-code%2Ftiny-bandit/lists"}