12 releases

Uses old Rust 2015

0.1.11 Sep 4, 2017
0.1.10 Aug 26, 2017
0.1.8 Jun 21, 2017

#348 in Games

Download history 14/week @ 2022-11-20 2/week @ 2022-12-04 1/week @ 2022-12-18 16/week @ 2022-12-25 1/week @ 2023-01-01 12/week @ 2023-01-08 1/week @ 2023-01-15 3/week @ 2023-01-22 32/week @ 2023-01-29 12/week @ 2023-02-05 33/week @ 2023-02-12 48/week @ 2023-02-19 1/week @ 2023-03-05

82 downloads per month

MIT license

3MB
783 lines

Game of Life Build Status

Conway's Game of Life implemented in Rust and OpenGL via gfx-rs.

Done as an exercise to practise Rust and get my feet with with OpenGL.

Areas explored:

gol running

Usage

You can run the executable by downloading one of the binaries in releases, or via cargo install gol, then running gol, or if you've cloned the repo,cargo run.

OPTIONS:
    -h, --grid-height <grid-height>        Height of the grid [default: 80]
    -w, --grid-width <grid-width>          Width of the grid [default: 100]
    -u, --update-rate <update-rate>        Number of updates to the game board per second [default: 30]
        --window-height <window-height>    Height of the window [default: 768]
        --window-width <window-width>      Width of the window [default: 1024]

If running via cargo, options need to be passed by appending --, i.e. cargo run -- -h 10 -w 10.

Todo

  • Optimise!

Dependencies

~7.5MB
~156K SLoC