rlifesrc-lib
Rust Life Search, or rlifesrc, is a Game of Life pattern searcher written in Rust.
The program is based on David Bell's lifesrc and Jason Summers's WinLifeSearch, using an algorithm invented by Dean Hickerson.
Compared to WinLifeSearch, rlifesrc is still slower, and lacks many important features. But it supports non-totalistic Life-like rules.
This is the library for rlifesrc. There is also a command-line tool with a TUI and a web app complied to WASM.
You can try the web app here.
Example
Finds the 25P3H1V0.1 spaceship.
use ;
// Configures the world.
let config = new.set_translate;
// Crates the world.
let mut search = config.set_world.unwrap;
// Searches and displays the generation 0 of the result.
if let Found = search.search
Search result:
........O.......
.OO.OOO.OOO.....
.OO....O..OO.OO.
O..O.OO...O..OO.
............O..O