https://github.com/marionauta/ag
Simple implementation of agent-based models in Zig
https://github.com/marionauta/ag
Last synced: 4 months ago
JSON representation
Simple implementation of agent-based models in Zig
- Host: GitHub
- URL: https://github.com/marionauta/ag
- Owner: marionauta
- Created: 2023-07-21T12:39:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-11T18:36:02.000Z (9 months ago)
- Last Synced: 2025-01-13T01:09:30.490Z (6 months ago)
- Language: Zig
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ag
Simple implementation of agent-based models in C, with graphic representation
using raylib. This is a project to learn more about C memory handling.## Roadmap
- [x] Graphical representation of the agents' state.
- [x] Graphical toolbar to manage the simulation.
- [ ] Scripting language to define the simulation.## Dependencies
- A C compiler
- GNU make
- [raylib 4.5](https://www.raylib.com)
- [raygui 4.0](https://github.com/raysan5/raygui/releases/tag/4.0)
- Copy `src/raygui.h` to the `vendor` folder.
- Aditionally, you can run `make vendor/raygui.h` and it will download
and extract it automatically.## Compile & run
```console
$ make
$ make run
```## References
- [Agent-based model](https://en.wikipedia.org/wiki/Agent-based_model)