get_words: get_words reads in words to be inserted in the puzzle and the...

Description Usage Arguments Details

Description

Reads the puzzle description file and returns a character vector with one word in each element.

Usage

1
get_words(puzzle_description_file)

Arguments

puzzle_description_file

is a character varialble containing the name of the file containing the word list and specifications.

It has a list of words ended by a line beginning with a '#'. Words may be on the same or different lines. The following elements make of the specifications, which follow the word list:

puzzle_description_file File name (with path if necessary) with the specifications and word list to use.
title Title for word puzzle first page.
max_trials Number of times the program is to try to fit each word into the puzzle n_direction times.
n_directions Number of directions (not necessarily different) to be tried for each word if needed.
width Width of puzzle in characters.
height Height of puzzle in rows.
left_right Direction of word characters; normal.
right_left Direction of word characters; backward.
up_down Direction of word characters
down_up Direction of word characters
up_right Direction of word characters
up_left Direction of word characters
down_right Direction of word characters
down_left Direction of word characters

Details

The letter case of words and order is not changed.


rmsharp/wordPuzzle documentation built on May 26, 2019, 10:36 a.m.