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

missions-4-2: fix underwater worms #125

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

hexagonrecursion
Copy link
Contributor

Rewritten the AI to never goto() to an underwater location. Where necessary a random nearby point is used as a fallback. If the random point is also underwater, we do nothing - the next iteration of the outer loop will retry - we will eventually find a valid nearby location.

@tomangelo2 tomangelo2 merged commit 910b0dd into colobot:dev Dec 9, 2024
2 checks passed
@hexagonrecursion hexagonrecursion deleted the worms branch December 10, 2024 06:23
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

Successfully merging this pull request may close these issues.

Underwater alien worms
2 participants