18 lines
323 B
Go
18 lines
323 B
Go
package model
|
|
|
|
func (m model) update() model {
|
|
// Update correctness/sections
|
|
|
|
// Check for complete sections, which are those where the row and column are both correct
|
|
|
|
// Check for clears, which are at least 2x2
|
|
|
|
// Clear and bump scores
|
|
|
|
// Check for blackout
|
|
|
|
// Update row/column states/correctness
|
|
|
|
return m
|
|
}
|