goboggle

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 12 Imported by: 0

README

goboggle

A Go library for generating Boggle boards as text and images.

Running example

go run ./examples -filename /dev/stdout -font-filename /home/kyle/Downloads/static/PlayfairDisplay-SemiBold.ttf | feh -

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenBoard

func GenBoard(boardType BoggleType) [][]string

Generate a boggle board. Seed the random generator before calling this method.

func GenImage

func GenImage(board [][]string, fontFilename string, fontSize float64, writer io.Writer) error

func PrintBoard

func PrintBoard(board [][]string)

Types

type BoggleType

type BoggleType int
const (
	Normal BoggleType = iota
	OldNormal
	Big
	BigChallenge
	Super
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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