Rudimentary Station AI logic, take two#10087
Merged
Agetian merged 7 commits intoCard-Forge:masterfrom Mar 18, 2026
Merged
Conversation
tool4ever
reviewed
Mar 18, 2026
- Only run the expensive prediction check if the first condition is false
Contributor
|
Maybe: make station more likely if it's a (untapped) Spacecraft? And it becomes a creature? |
Contributor
Author
|
Yeah, I thought about that tbh, but not sure how to do it... The problem is, it'll need synchronization between what is chosen to be tapped for what Station, and that'll need a rather complex modification to both chooseTapType and willPayCosts that I can't quite figure out :( I'll think about it some more though. May need to do this as a followup PR unless some bright ideas come to mind ^^; Basically, we'll need to determine that whatever we tap will be enough to get the Station to the value where it becomes a creature. |
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.
A very basic AI which will activate the ability when it's reasonably safe to do so (AI is at decent life after the possible attack, or it doesn't have any possible blockers, or there's nothing to block). Needs to be improved, but not sure how. Probably chooseTapType needs to be updated as well so that what exactly is tapped is more carefully selected (and something is kept back).