game-of-life.zig
game-of-life.zig

insolor/game-of-life.zig

MIT

WIP: Game of life with infinite (sparse) field implemented in zig

0 0 0 0
4
build.zig.zon  build.zig 
View on Github  
Updated: 5:08:00 PM Mon Nov 25 2024 Size: 40KB Created: 9:30:38 AM Fri Nov 22 2024
Dependencies:
No known dependencies
zig  fetch  --save  git+https://github.com/insolor/game-of-life.zig

Game of Life in Zig

WARNING WORK IN PROGRESS

This is an implementation of Conway's Game of Life in Zig 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

Plans:

  • Infinite field
  • Engine (calculate next field state)
  • GUI
  • Mouse and keyboard control
  • Optimizations:
    • Parallelization?
    • Reuse memory instead of destroying and creating of fields?
  • Some cool stuff:
    • Fish-eye view?