Switch to better state machine

This commit is contained in:
Madison Rye Progress
2025-08-26 16:06:39 -07:00
parent 457f6429b4
commit b87631cb77
8 changed files with 103 additions and 269 deletions

View File

@ -9,12 +9,7 @@ import (
)
func main() {
m, err := model.New(4, 4)
if err != nil {
fmt.Printf("Ah, drat — %v\n", err)
os.Exit(1)
}
p := tea.NewProgram(m)
p := tea.NewProgram(model.New(4, 4))
if _, err := p.Run(); err != nil {
fmt.Printf("Ah drat — %v\n", err)
os.Exit(1)