https://github.com/insolor/game-of-life.zig
WIP: Game of life with infinite (sparse) field implemented in zig
https://github.com/insolor/game-of-life.zig
game-of-life game-of-life-zig zig ziglang
Last synced: 2 months ago
JSON representation
WIP: Game of life with infinite (sparse) field implemented in zig
- Host: GitHub
- URL: https://github.com/insolor/game-of-life.zig
- Owner: insolor
- License: mit
- Created: 2024-11-22T09:30:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-03-05T19:06:47.000Z (3 months ago)
- Last Synced: 2025-03-05T19:31:36.288Z (3 months ago)
- Topics: game-of-life, game-of-life-zig, zig, ziglang
- Language: Zig
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Game of Life in Zig
[](https://github.com/insolor/game-of-life.zig/actions/workflows/zig-build-test.yml)
> [!WARNING]
> WORK IN PROGRESSThis is an implementation of [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) in [Zig](https://ziglang.org/) programming language with infinite field.
The field is represented as a sparse 2D array of blocks.
Started as a reimplementation of a prototype of the same idea in python: [insolor/game-of-life](https://github.com/insolor/game-of-life)
Plans:
- [x] Infinite field
- [x] Engine (calculate next field state)
- [x] GUI (raylib)
- [ ] Mouse and keyboard control
- Optimizations:
- Parallelization?
- Reuse memory instead of destroying and creating of fields?
- Some cool stuff:
- Fish-eye view?