Add Octocat Slots — a GitHub-themed slot machine app#100
Open
darostegui wants to merge 2 commits into
Open
Conversation
Three-reel slot machine with two swappable reel themes (classic casino and GitHub/RKO'27), weighted odds (~4% jackpot / ~16% pair / ~80% loss), persistent credits and high score, and a confetti win celebration. Controls: B/A spin, UP/DOWN bet, C refill credits, A+B+C toggle theme. Config via conf.py: RKO selects the reel theme, WIN selects the payout table. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “Octocat Slots” app to the Universe badge app suite, implementing a three-reel slot machine with two swappable visual themes and persistent credit/high-score tracking.
Changes:
- Introduces the Octocat Slots game implementation (rendering, spin logic, payouts, persistence, and theme toggle).
- Adds an app-level configuration file (
conf.py) to select reel theme and payout tuning. - Adds an in-app README describing controls, payouts, configuration, and included files.
Show a summary per file
| File | Description |
|---|---|
| badge/apps/octoslots/init.py | New slot machine app logic, UI rendering, persistence, and theme toggle behavior. |
| badge/apps/octoslots/conf.py | New configuration defaults for reel theme and payout mode. |
| badge/apps/octoslots/README.md | Documentation for gameplay controls, payout behavior, and configuration. |
Review details
- Files reviewed: 3/11 changed files
- Comments generated: 3
- Review effort level: Low
- Refill credits on C only (matches the 'Press C for credits' messaging, controls table, and PR docs) instead of any A/B/C press - Update the out-of-credits hint to 'PRESS C TO REFILL' to match - Fix the RKO=1 docstring symbol list to include RKO'27 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Author
|
Thanks @copilot-pull-request-reviewer — addressed all three in 9fa8b49:
Verified in the simulator: A/B do nothing when out of credits, C refills to 10. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Octocat Slots 🎰
A GitHub-themed three-reel slot machine for the Universe badge. Pull the lever,
match symbols, chase the jackpot, and keep your credit balance climbing.
What it does
Controls
Configuration —
conf.pyRKO0RKO1WIN1WIN0Both themes share the same six-symbol payout table, so switching themes changes
only the artwork, never the odds.
Easter egg 🥚
Hold A + B + C together during play to flip between the casino and GitHub
reel themes instantly. The choice is written back to
conf.py, so it sticksnext launch.
Structure
Standard app layout —
__init__.py, 24×24icon.png,assets/(two 192×32sprite sheets), plus a
conf.pyandREADME.md. No changes to the menu or anyother app.
Testing
python simulator/badge_simulator.py -C badge badge/apps/octoslots)screenshots/)Art is original or derived from GitHub's own marks; the casino symbols are
generic slot iconography (no third-party game trademarks).