Documentation
¶
Index ¶
- Variables
- func New(mode Mode, puzzle Puzzle) (game.Gamer, error)
- type KeyMap
- type Mode
- type Model
- func (m Model) GetDebugInfo() string
- func (m Model) GetFullHelp() [][]key.Binding
- func (m Model) GetSave() ([]byte, error)
- func (m Model) Init() tea.Cmd
- func (m Model) IsSolved() bool
- func (m Model) Reset() game.Gamer
- func (m Model) SetTitle(t string) game.Gamer
- func (m Model) Update(msg tea.Msg) (game.Gamer, tea.Cmd)
- func (m Model) View() string
- type Puzzle
- type Save
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeyMap = KeyMap{ CursorKeyMap: game.DefaultCursorKeyMap, Clear: key.NewBinding( key.WithKeys("backspace", "delete"), key.WithHelp("bkspc", "Clear"), ), }
View Source
var Definition = game.Definition{ Name: "Fillomino", Description: "Grow numbered regions to their exact sizes.", Aliases: []string{"polyomino", "regions"}, Modes: Modes, DailyModes: DailyModes, Help: HelpContent, Import: func(data []byte) (game.Gamer, error) { return ImportModel(data) }, }
View Source
var HelpContent string
View Source
var Modes = []list.Item{ NewMode("Mini 5x5", "Small board with generous clues.", 5, 5, 0.70), NewMode("Easy 6x6", "Compact board with simple regions.", 6, 6, 0.66), NewMode("Medium 8x8", "Balanced deduction and region growth.", 8, 7, 0.60), NewMode("Hard 10x10", "Larger board with denser interactions.", 10, 8, 0.56), NewMode("Expert 12x12", "Wide board with long deduction chains.", 12, 9, 0.52), }
Functions ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func ImportModel ¶
func (Model) GetDebugInfo ¶
func (Model) GetFullHelp ¶
type Puzzle ¶
func GeneratePuzzle ¶
Click to show internal directories.
Click to hide internal directories.