Files
gogogogogram/model.go
Madison Rye Progress 1bf7e0c828 start on scoring in state
2025-09-22 22:14:57 -07:00

26 lines
524 B
Go

package main
import "git.makyo.dev/makyo/gogogogogram/state"
type model struct {
fieldSize, sectionSize, cellsPerSection int
state *state.State
clears, score, factor, track int
columnStates, rowStates [][]int
columnsCorrect, rowsCorrect []bool
}
func newModel(sectionSize, cellsPerSection int) model {
m := model{
fieldSize: sectionSize * cellsPerSection,
sectionSize: sectionSize,
cellsPerSection: cellsPerSection,
state: state.New(sectionSize, cellsPerSection),
}
return m
}