-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AI - place units on non infra factories #3645
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3645 +/- ##
============================================
- Coverage 22.55% 22.52% -0.03%
- Complexity 5983 6064 +81
============================================
Files 822 822
Lines 71032 72528 +1496
Branches 11479 11985 +506
============================================
+ Hits 16019 16340 +321
- Misses 52922 54076 +1154
- Partials 2091 2112 +21
Continue to review full report at Codecov.
|
ProPurchaseUtils.findPurchaseOptionsForTerritory(player, purchaseOptions.getFactoryOptions(), maxTerritory, | ||
isBid); | ||
final List<ProPurchaseOption> purchaseOptionsForTerritory = ProPurchaseUtils | ||
.findPurchaseOptionsForTerritory(player, purchaseOptions.getFactoryOptions(), maxTerritory, isBid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting in case it wasn't your intention... this line is still calling the four-parameter version of findPurchaseOptionsForTerritory()
where t
== factoryTerritory
. Assuming you thought you were going to add the fifth parameter here but changed your mind and left the reformatted line in place. Since the enclosing method is purchaseFactory()
, I'm guessing that's a safe assumption. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's exactly the case. I realized factoryOptions were only land territories so didn't need the fifth parameter.
Overview
Addresses post: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback/110. AI only changes.
Functional Changes
Have the AI be able to use non-infra factories to place units.
Manual Testing Performed