3 releases (breaking)
0.3.0 | May 25, 2022 |
---|---|
0.2.0 | May 10, 2022 |
0.1.0 | May 10, 2022 |
#1217 in Data structures
43KB
768 lines
A minimalist interface to manage the backend of a Minesweeper game. Read the docs for more information.
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–285KB