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

examples/wolf_sheep: Don't allow dumb moves #2503

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 13, 2024

  1. examples/wolf_sheep: Don't allow dump moves

    Agents now move completely random in WolfSheep. That makes no sense whatsoever, so this PR makes them move a little bit less dump.
    
    - Wolf moves to random cell with sheep on them, if available (otherwise completely random)
    - Sheep move to a random cell without a wolf (if available), and preferably with grass.
    
    This enables sheep to actually "search" for grass, wolfs to search for sheep and sheep to not move to a cell with wolves.
    
    More importantly, it shows of some nice selection mechanics with the cell space.
    EwoutH committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    dfbdb1a View commit details
    Browse the repository at this point in the history