Implement Field Blower trainer card functionality#243
Merged
Conversation
Adds move generation and effect logic for Field Blower, which lets the active player choose to discard a Pokémon Tool from any Pokémon in play (either player's) or discard the active Stadium. Introduces two new SimpleAction variants — DiscardToolFromPokemon and DiscardActiveStadium — to represent the two available choices and handles them as deterministic actions in the engine. https://claude.ai/code/session_016QzTeF1hhQtayCcUXoKT4s
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.
Summary
This PR adds support for the Field Blower trainer card, which allows a player to discard either a tool attached to any Pokémon (from either player) or the active stadium card.
Key Changes
DiscardToolFromPokemonandDiscardActiveStadiumtoSimpleActionenum to represent Field Blower's effectscan_play_field_blower()to validate that Field Blower can only be played when there's at least one Pokémon with an attached tool or an active stadium in playfield_blower_effect()to generate choice actions for the player, offering to discard each available tool and/or the stadiumapply_deterministic_action()to execute the discard operations on the game stateImplementation Details
https://claude.ai/code/session_016QzTeF1hhQtayCcUXoKT4s