Skip to content
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

Associated cost with each action #4

Closed
SZanlongo opened this issue Jun 26, 2017 · 2 comments · Fixed by #15
Closed

Associated cost with each action #4

SZanlongo opened this issue Jun 26, 2017 · 2 comments · Fixed by #15
Assignees

Comments

@SZanlongo
Copy link

Since GOAP is using A* to find the best solution, is there a simple way of assigning a cost to each action? It might make sense in situations where a long chain of actions is still "cheaper" than a short sequence of very "expensive" actions.

@leopepe
Copy link
Owner

leopepe commented Nov 12, 2018

Yes. It is possible to add costs to the actions. The NetworkX framework supports it. I will include this on the TODO list. It is one thing that I had already discussed with some colleagues but forgot to plan this change.
If you have any intentions to contribute to the project I would be happy to merge your modifications. Please remember to create UnitTests if you do so.

@leopepe
Copy link
Owner

leopepe commented Oct 18, 2020

Added in version 0.2.1 (Yet to be tested)

PR: #15

@leopepe leopepe self-assigned this Oct 18, 2020
@leopepe leopepe linked a pull request Oct 18, 2020 that will close this issue
@leopepe leopepe pinned this issue Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants