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

Agent ignores its own position, and hazards in its path #3

Open
Game4Move78 opened this issue Sep 28, 2022 · 0 comments
Open

Agent ignores its own position, and hazards in its path #3

Game4Move78 opened this issue Sep 28, 2022 · 0 comments

Comments

@Game4Move78
Copy link

Game4Move78 commented Sep 28, 2022

Seems to me from the code and the video demo that the agent exhibits two behaviours.

  • Find position closest to the first coin in dictionary
  • Subject to constraint that it is not contained in a .3x.3 bounding box of any hazards

So if there is a monster at the midpoint of the player and the coin, but displaced from the coin by at least .3 in either direction, the agent will run directly into the monster because it only cares about danger at the destination but not the path. This seems to happen in the demo.

Some ideas are to (i) only consider solutions in the neighbourhood of the player (relative vector with bounds), or to (ii) change the fitness function to measure distance from the segment with endpoints at player and coin and (iii) consider the coin closest to the solution.

As it is the agent is exhibiting behaviour that could be easily found using simple path finding rather than GA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant