Files
mine-sweeper/cell.go

27 lines
302 B
Go

package minesweeper
import "image/color"
type CellType int
const (
NO_BOMB CellType = iota
BOMB
)
type State int
const (
OPEN State = iota
DARK
FLAG
)
type Cell struct {
top, left float32
color color.Color
state State
cellType CellType
bombNeighbours int
}