Skip to content

fix: Fix missing kita action mapping in 3P observation Python bridge - #164

Merged
smly merged 1 commit into
mainfrom
fix/kita-select-bug
Mar 10, 2026
Merged

fix: Fix missing kita action mapping in 3P observation Python bridge#164
smly merged 1 commit into
mainfrom
fix/kita-select-bug

Conversation

@smly

@smly smly commented Mar 10, 2026

Copy link
Copy Markdown
Owner

Add missing "kita" match arm in select_action_from_mjai for 3P observation.

Fixes #163

Thanks for the bug report! @shinkuan, @Apricot-S

@smly smly self-assigned this Mar 10, 2026
@smly smly added bug Something isn't working core labels Mar 10, 2026
@smly
smly requested a review from Copilot March 10, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the 3-player (Sanma) Python bridge action selection so that MJAI "kita" actions are recognized and mapped to the internal ActionType::Kita, preventing select_action_from_mjai from returning None for nuki-dora plays.

Changes:

  • Add missing "kita" match arm in Observation3P::select_action_from_mjai to map to crate::action::ActionType::Kita.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@smly
smly merged commit b69fc0e into main Mar 10, 2026
11 checks passed
@smly
smly deleted the fix/kita-select-bug branch March 10, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Three Player version's select_action_from_mjai is missing kita action

2 participants