This repository contains a screensaver based on the popular cellular automaton, Conway's Game of Life, implemented in Rust using the Raylib game development library.
The screensaver displays an implementation of Game of Life, which is a cellular automaton devised by the British mathematician John Horton Conway in 1970.
The game is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. The visualizations can result in interesting patterns and dynamics within the grid.
-
Install Rust and the Cargo package manager if you haven't already.
-
Clone this repository:
git clone https://github.com/GKaszewski/screensaver.git
-
Build the screensaver:
cd screensaver cargo build --release
-
Run the screensaver:
cargo run
-
Replace the extension of the executable with
.scr
and copy it to theC:\Windows\System32
directory.
Simply run the screensaver with cargo run
. It will create a window and start displaying the Game of Life.
Any user activity (mouse) will exit the screensaver.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under MIT License.