#mine #minesweeper #sweeper

mine_sweeperr

Minimalist interface to manage the backed of a mine sweeper game

3 releases (breaking)

0.3.0 May 25, 2022
0.2.0 May 10, 2022
0.1.0 May 10, 2022

#975 in Game dev

MIT/Apache

43KB
768 lines

mine_sweeperr

Crates.io Crates.io docs.rs

A minimalist interface to manage the backend of a Minesweeper game. Read the docs for more information.

LIVE PROJECT


lib.rs:

Mine sweeper

A minimalist interface to manage the backend of a mine sweeper game.

Import MineSweeper and one of its implementations (MSMatrix or MSHash) to use it. You can also create your own implementation, if you prefer: this crate already declares the needed functions and types to create and manage a mine sweeper game.

IMPORTANT: This crate supports wasm but, in that case, seeded random generators (or in general the rand crate) are not allowed due to incompatibility with wasm itself. Maybe in future versions some kind of trick will be implemented to make it work. A working implementation of this library with wasm frontend is available on my GitHub page

Dependencies

~0–290KB