Add pixel-art assets and a graphical (pygame) version of the game#3
Open
m5136771 wants to merge 1 commit into
Open
Add pixel-art assets and a graphical (pygame) version of the game#3m5136771 wants to merge 1 commit into
m5136771 wants to merge 1 commit into
Conversation
Generate a cohesive set of pixel-art sprites and wire them into a new point-and-click version of Liar's Dice. The original terminal game is unchanged. - generate_assets.py: builds all sprites with Pillow (six dice faces, a hidden die, pirate skull, treasure chest, gold coin, dice cup, and a wooden plank table tile). Authored at low resolution and upscaled with nearest-neighbour for a crisp, chunky pixel look. - assets/: the generated PNGs, committed so the game runs out-of-the-box with only pygame installed. - liars_dice_gui.py: a pygame UI on the wood table with skull/cup avatars, face-up player dice, hidden bot dice, a current-bid banner, a value+ quantity bid picker, RAISE/CHALLENGE buttons, a dice reveal, and win/lose screens. Reuses the same bot strategy as the terminal version. - requirements.txt + README: document both versions and the artwork. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JGnKkxFCmoNDqhCyiyyhj2
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.
What this adds
A cohesive set of pixel-art sprites and a new graphical, point-and-click version of Liar's Dice that actually uses them. The original terminal game (
liars_dice.py) is unchanged — this is a second way to play.New files
generate_assets.py— builds every sprite with Pillow. Each sprite is authored at a tiny native resolution (a grid of characters) and upscaled with nearest-neighbour for a crisp, chunky pixel look. Produces: six dice faces, a "hidden" die for the bots' secret rolls, a pirate skull, a treasure chest, a gold coin, a dice cup, and a wooden plank used to tile the table-top.assets/— the generated PNGs, committed so the game runs out-of-the-box with onlypygame(no Pillow needed just to play).liars_dice_gui.py— apygameUI on a wood table: skull/cup avatars, face-up player dice, hidden bot dice, a current-bid banner, a value + quantity bid picker, RAISE / CHALLENGE buttons, a dice reveal, and win/lose screens. It reuses the same bot strategy as the terminal version.requirements.txt—pygame+pillow.Changed
README.md— documents both versions and the artwork.liars_dice.py— one comment line: marks the "Add a GUI" future-feature as done. No behaviour change.How to play it
Testing done
generate_assets.pyand visually reviewed every sprite.handle_click(ROLL → bid → CHALLENGE → reveal → CONTINUE → PLAY AGAIN).Preview
The graphical version on a human's turn (six-die value picker with quantity stepper and RAISE/CHALLENGE buttons):
🤖 Generated with Claude Code
https://claude.ai/code/session_01JGnKkxFCmoNDqhCyiyyhj2
Generated by Claude Code