Initial commit: it compiles?

This commit is contained in:
Madison Rye Progress
2025-08-25 23:02:06 -07:00
parent 9ab2fb22fb
commit 82e7f3b393
9 changed files with 408 additions and 0 deletions

29
model/model.go Normal file
View File

@ -0,0 +1,29 @@
package model
type Model struct {
size, section, perSection int
field, view int
marks, flags int
correct, sections, completed int
clears, score, factor, track int
cursor int
columnStates, rowStates [][]int
columnsCorrect, rowsCorrect []bool
history []string
}
func New(section, perSection int) (Model, error) {
m := Model{
size: section * perSection,
section: section,
perSection: perSection,
}
for i := 0; i < section*section; i++ {
m = m.randomizeSection(i)
}
return m, nil
}