Skip to content

[Feature]: adding abstraction of optimal agent movement #108

@adamamer20

Description

@adamamer20

It would be beneficial to have a function in the DiscreteSpaceDF (and AgentContainer) for moving agents based on attributes:

move_to(agents: AgentLike, attr_names: str | list[str], rank_order: ['max' | 'min'] | list['max' | 'min'])

For example: move_to('sugar', 'max'). This would abstract the code for handling sequential conflicts, making it easier than handling them from scratch each time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality added to the project.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions