wordsearch

command module
v0.0.0-...-c6507a7 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

wordsearch

A command-line generator for wordsearch puzzles; creates plain text output or a PDF from a collection of data files.

The data files are YAML files with this structure:

title: My Title
description: A sample wordsearch
words:
  - first
  - second
  - it's a good word
  - find this

The words are converted to all upper-case with non-alpha characters removed.

The algorithm is simple -- it just tries to place each word, in shuffled order, at each possible grid location until it finds a fit. Each location is tried horizontally, vertically, and optionally diagonally down and diagonally up.

The order of rows, columns, and directions in which things are tried is also randomized so the puzzle doesn't cluster in one direction or another.

If it gets to the point where it cannot place one of the words, it starts again with a larger grid. The range of grid sizes it will try is also controllable.

Specifying a PDF filename generates a single PDF file with all of puzzles in a single document.

To see all the options, type -h.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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