Versions in this module Expand all Collapse all v0 v0.6.0 Aug 6, 2026 Changes in this version type Replay + NoGuess bool v0.5.0 Aug 6, 2026 v0.4.2 Aug 6, 2026 Changes in this version type Board + func (b *Board) MarkAt(c Coord) Mark + func (b *Board) SetMark(c Coord, mark Mark) ActionResult type Move + TargetMark *Mark v0.4.1 Aug 6, 2026 v0.4.0 Aug 6, 2026 Changes in this version + type Move struct + Kind MoveKind + type MoveKind int + const MoveChord + const MoveMark + const MoveReveal + type Replay struct + Difficulty Difficulty + ID string + Moves []Move + PlayedAt time.Time + Seconds int + Seed Seed + Won bool + func (r Replay) Apply(b *Board, n int) v0.3.0 Aug 5, 2026 Changes in this version type Board + func NewNoGuessBoard(d Difficulty, seed Seed) *Board + func (b *Board) CanMark(c Coord) bool + func (b *Board) CycleMark(c Coord, questions bool) ActionResult + func (b *Board) NoGuess() bool type Cell + Mark Mark type CellState + const CellQuestioned + type Mark uint8 + const MarkFlag + const MarkNone + const MarkQuestion v0.2.1 Aug 5, 2026 v0.2.0 Aug 5, 2026 Changes in this version + const DailyKeyword + func DailyDate(t time.Time) string + type ActionResult struct + Changed []Coord + Ok bool + Status Status + type Board struct + func NewBoard(d Difficulty, seed Seed) *Board + func (b *Board) CanChord(c Coord) bool + func (b *Board) CanFlag(c Coord) bool + func (b *Board) CanReveal(c Coord) bool + func (b *Board) CellView(c Coord) CellView + func (b *Board) Chord(c Coord) ActionResult + func (b *Board) Difficulty() Difficulty + func (b *Board) ElapsedReady() bool + func (b *Board) FlagCount() int + func (b *Board) Height() int + func (b *Board) MineCount() int + func (b *Board) RemainingMines() int + func (b *Board) Reveal(c Coord) ActionResult + func (b *Board) Seed() Seed + func (b *Board) Status() Status + func (b *Board) ToggleFlag(c Coord) ActionResult + func (b *Board) Width() int + type Cell struct + Adjacent uint8 + Flagged bool + HasMine bool + Revealed bool + type CellState int + const CellFlagged + const CellHidden + const CellRevealed + type CellView struct + Adjacent uint8 + ShowMine bool + State CellState + type Coord struct + X int + Y int + func (c Coord) InBounds(w, h int) bool + func (c Coord) Neighbors(w, h int) []Coord + type Difficulty struct + Height int + Mines int + Preset Preset + Width int + func PresetDifficulty(p Preset) Difficulty + func (d Difficulty) Key() string + func (d Difficulty) Validate() error + type Preset int + const Beginner + const Custom + const Expert + const Intermediate + func PresetFromString(s string) (Preset, bool) + func (p Preset) String() string + type Seed uint32 + func DailySeed(t time.Time) Seed + func ParseSeed(s string, now time.Time) (Seed, error) + func RandomSeed() Seed + func (s Seed) String() string + type Status int + const StatusLost + const StatusPlaying + const StatusWon