mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3512] [Issue]: UNO bots waste Wild cards by re-declaring the current active color #1897
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1897
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Jul 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3512
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In Conversation-mode UNO, character bots frequently play Wild or Wild Draw Four cards and declare the color that is already active. This is legal but reduces move quality and breaks immersion because the bot appears to ignore strategic color choice.
Expected behavior
When a bot plays a Wild or Wild Draw Four, it should usually declare the color it benefits from most, such as the color it holds the most of, rather than defaulting to the currently active color unless that is genuinely the strongest choice.
Actual behavior
Bots often re-declare the current active color after playing a Wild or Wild Draw Four, leaving the color unchanged even when they hold few or no cards of that color.
Steps to reproduce
Environment
Logs, screenshots, or video
No logs, screenshots, or video provided. Reported prompt/code evidence:
describeForModel()sendsbuildBoardSummary(), which begins withTop card: … — active color is Red., whilebuildInstructions()and theplay_cardtool do not provide strategy for choosingdeclared_color. Theplay_cardtool describesdeclared_coloronly as "the color you choose."Additional context
Reported root cause: the model chooses the Wild color without strategy guidance, so it anchors on the most salient color token in the prompt: the current active color. Relevant files:
packages/shared/src/features/turn-games/uno/engine.ts(buildBoardSummary,buildInstructions,pickFallback/dominantColor) andpackages/shared/src/features/turn-games/uno/tools.ts(playCardToolManifest). Proposed fix: append a line inbuildInstructions()when the acting seat holds a Wild/Wild Draw Four, using existingcolorCounts(hand)data, such as: "If you play a Wild, setdeclared_colorto the color you hold the most of (you have: 3 blue, 2 green, 1 red). Don't just keep the current color (Red) unless it's genuinely your strongest." Optionally mirror the hint in thedeclared_colortool description. A stricter alternative would reject Wild plays that re-declare the current color while the seat holds other colors, but guidance is preferred to preserve character agency. Related context: sibling to #3306 / #3308 around personality-driven bot moves; this issue is a color-strategy gap and does not affect state integrity.Discord thread: [Issue]: UNO bots waste Wild cards by re-declaring the current active color
Discord thread link: https://discord.com/channels/1417099416812392641/1525690259042730155
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 12, 2026):
Implementation is now owned by the combined draft PR #3516. I am reproducing the reported path and will close this issue through that PR once its fix and regression proof are complete.
@SpicyMarinara commented on GitHub (Jul 12, 2026):
Fixed in #3516 (commit
d10626344): UNO bot prompts now include remaining color counts and explicitly prefer the strongest held color for Wild declarations instead of repeating the active color. Regression coverage passes.