mesa / mesa/mesa-frames

[Feature]: Add movement methods to AgentContainer

Open
#82 1 comment 0 reactions 1 assignee Claimed by @adamamer20 View on GitHub
feature good first issue
Dominant language
Python
Stars
42
Forks
18
Avg merge
1m
Merged PRs (30d)
1

Description

### 🤔 Problem Description

Currently, various movement methods (`move_to_empty`, `move_to_available`, etc.) are implemented directly within the space module. These methods require explicitly passing agents (e.g., agent IDs or an `AgentContainer`). This approach can be cumbersome since there's no direct interface on `AgentContainer` itself.

### 💡 Proposed Solution

Implement a dedicated interface on `AgentContainer` classes that wraps these movement methods. By default, these methods would pass themselves as the agents to the underlying space methods, unless another set of agent IDs is explicitly provided.

This approach would significantly simplify the API and make it more intuitive.

### 🔄 Alternatives Considered

_No response_

### ➕ Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.