writer

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(g *sudoku.Grid) string

Render renders the given Sudoku Grid in a pretty ASCII table.

func RenderDiff

func RenderDiff(g, og *sudoku.Grid) string

RenderDiff renders the given Sudoku Grid in a pretty ASCII table and highlights the differences compared to Grid 'og'.

func RenderJigSaw

func RenderJigSaw(g *sudoku.Grid) string

RenderJigSaw renders a JigSaw Sudoku in colored mode.

func RenderJigSawDiff

func RenderJigSawDiff(g, og *sudoku.Grid) string

RenderJigSawDiff renders a JigSaw Sudoku in colored mode and highlights the differences compared to Grid 'og'.

func RenderSamurai

func RenderSamurai(grids []*sudoku.Grid) (string, error)

RenderSamurai renders a Samurai Sudoku which is a combination of 5 Sudokus.

func SetTheme

func SetTheme(theme string)

SetTheme overwrites the default theme used when rendering a Grid to a string.

func Themes

func Themes() []string

Themes returns the list of available themes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL