rustymines 2.6.2

A mine sweeping game engine with optional duds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use grid2d::Coordinate;

/// Possible player actions during a game.
#[derive(Clone, Copy, Debug)]
pub enum Action {
    /// Visit the field at the given coordinate.
    Visit(Coordinate),
    /// Toggle the flag on the field at the given coordinate.
    ToggleFlag(Coordinate),
    /// Visit all non-flagged fields.
    VisitAllNonFlaggedFields,
}