- commit
- ad89329d2ea22ce05bb19605189e51b4d8fe1a30
- parent
- fe4a67e29168999121abb22fee5ca11b9f5ab661
- author
- felinestatemachine <dami.etoile@gmail.com>
| M | model.go | 7 | ++++--- |
| M | nonogram/ | 8 | ++++---- |
| M | nonogram/ | 4 | ++++ |
| M | sudoku/ | 6 | ++++++ |
@@ -5,7 +5,7 @@ import (
55 66 "github.com/FelineStateMachine/puzzletea/game"77 "github.com/FelineStateMachine/puzzletea/nonogram"8- "github.com/FelineStateMachine/puzzletea/sudoku"8+ // "github.com/FelineStateMachine/puzzletea/sudoku"99 "github.com/charmbracelet/bubbles/list"1010 tea "github.com/charmbracelet/bubbletea"1111 "github.com/charmbracelet/glamour"@@ -22,8 +22,9 @@ var (
2222 nonogram.NewMode("Hard - 15x15", "A random nonogram on a fifteen by fifteen board.", 15, 15),2323 nonogram.NewMode("Extra - 5x10", "A random nonogram on a five by ten board.", 5, 10),2424 25- sudoku.NewMode("Easy - 38 Provided Cells", "A random sudoku with at least 38 cells provided to start.", 38),26- sudoku.NewMode("Hard - 26 Provided Cells", "A random sudoku with at least 26 cells provided to start.", 26)}25+ // sudoku.NewMode("Easy - 38 Provided Cells", "A random sudoku with at least 38 cells provided to start.", 38),26+ // sudoku.NewMode("Hard - 26 Provided Cells", "A random sudoku with at least 26 cells provided to start.", 26)27+ }2728 )2829 2930 const (@@ -114,10 +114,10 @@ func (m Model) GetDebugInfo() string {
114114 "| Dimensions | [%dx%d] |\n"+115115 "| Hint Render Width | %dr %dc |\n"+116116 "\n"+117- "Row Tomography\n```%v```\n"+118- "Row Hints\n```%v```\n\n"+119- "Col Tomography\n```%v```\n"+120- "Col Hints\n```%v```\n",117+ "Row Tomography\n\t%v\n"+118+ "Row Hints\n\t\t%v\n\n"+119+ "Col Tomography\n\t%v\n"+120+ "Col Hints\n\t\t%v\n\n",121121 solved,122122 m.cursor.x,123123 m.cursor.y,@@ -100,3 +100,7 @@ func (t TomographyDefinition) equal(o TomographyDefinition) bool {
100100 }101101 return true102102 }103+104+func (t TomographyDefinition) String() string {105+ return colHintView(t, t.RequiredLen())106+}@@ -1,5 +1,7 @@
11 package sudoku22 3+import "fmt"4+35 type cell struct {46 x, y int57 v int@@ -46,3 +48,7 @@ func loadSave(def grid, optionalSave ...string) grid {
4648 }4749 return g4850 }51+52+func (c cell) String() string {53+ return fmt.Sprintf("r%dc%d=%d", c.x, c.y, c.v)54+}