You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89-2Lines changed: 89 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,98 @@ MAgent2 is a library for the creation of environments where large numbers of pix
11
11
MAgent2 is a maintained fork of the original [MAgent](https://github.com/geek-ai/MAgent) codebase. It contains some [reference environments](https://github.com/Farama-Foundation/MAgent2/tree/main/magent2/environments) implemented using the [PettingZoo](https://github.com/Farama-Foundation/PettingZoo) API. These environments used to be included in PettingZoo itself, but have been moved here to exist independently. They are being regularly maintained and will receive bug fixes, support new versions of Python, etc. Development used to take place at [github.com/Farama-Foundation/MAgent](https://github.com/Farama-Foundation/MAgent) but was moved to [github.com/Farama-Foundation/MAgent2](https://github.com/Farama-Foundation/MAgent2) so that the distinction from the original MAgent library is clear to users.
12
12
13
13
## Installation
14
-
Install using pip: `pip install magent2`. See [docs](https://magent2.farama.org/) for usage information.
15
14
15
+
Install using pip:
16
+
```bash
17
+
pip install magent2
18
+
```
19
+
20
+
See [docs](https://magent2.farama.org/) for usage information.
21
+
22
+
### Build from source
23
+
24
+
MAgent2 includes a C++ native extension that requires CMake to build:
25
+
26
+
```bash
27
+
# Prerequisites: Python 3.10+, CMake, C++ compiler (GCC/Clang on Linux, MSVC on Windows)
This renders each frame as a grid image (red = red team, blue = blue team) and encodes them into an MP4 video using ffmpeg. See `battle_video.py` for the full implementation.
95
+
96
+
## Available Environments
97
+
98
+
| Environment | Agents | Description |
99
+
|-------------|--------|-------------|
100
+
|`battle_v4`| 162 | Two teams battle on a 45x45 grid |
0 commit comments