Refactor AI unit strategy assignment
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by locating the unit strategy assignment code and reading its deterministic if-else chain. Compare it with the city production and strategic priority decision-making processes, which the issue describes as more sophisticated. The issue does not specify a target design or tests; clarify the intended approach and how to verify the refactor before beginning.
Written by the indexing model from the issue text.
Description
Of the three AI decision-making types we have (unit strategy, city production, and strategic priority), unit strategy is currently the least sophisticated. It's essentially a deterministic if-else chain, which is not going to be very maintainable as it grows, and doesn't allow for any element of chance.
City production has a more sophisticated process of weighing each possibility and then deciding among the options, and strategic priorities have that plus an architecture that is at least in theory pluggable. They've both been worked on more recently.
- Dominant language
- C#
- Stars
- 662
- Forks
- 67
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 26
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from C7-Game/OpenCiv3
-
bug godot
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Make temporary popups stickyPossibly taken @stavrosfa claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
bug game core
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
assets bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
All issues in C7-Game/OpenCiv3
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
enhancement P3 performance
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
thomhurst/TUnit#7380 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
documentation trivial
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
PCL-Community/PCL-CE#3767 ·
Maintainers usually reply within 1 day