Skip to content

Update chess env to use PNG pieces - #681

Merged
jsuarez5341 merged 3 commits into
PufferAI:5.0from
zdu863:chess-piece-rendering
Sep 8, 2026
Merged

Update chess env to use PNG pieces#681
jsuarez5341 merged 3 commits into
PufferAI:5.0from
zdu863:chess-piece-rendering

Conversation

@zdu863

@zdu863 zdu863 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Replace font-based pieces with a centered PNG sprite sheet for the board and captured pieces. Preserve letter fallback sizing and colors. Add light-gray backgrounds behind captured icons for contrast. No gameplay changes.

Tested native Raylib and browser rendering, including missing-PNG fallback.

@zdu863
zdu863 marked this pull request as draft September 8, 2026 15:03
@zdu863
zdu863 marked this pull request as ready for review September 8, 2026 16:05
@bullardji

Copy link
Copy Markdown

Are these assets copyrighted? If not, then I would support the adding of these assets, as the author of this env. Otherwise I would keep things as is. Thank you for your contribution!

@zdu863

zdu863 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

@bullardji Thanks! The pieces are freely licensed under CC BY-SA 3.0, which permits reuse, including commercial use. They’re from Wikimedia Commons. I’ve included the title, author credits, and source/license links in the code.

@jsuarez5341
jsuarez5341 merged commit 180eeed into PufferAI:5.0 Sep 8, 2026
0 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants