R/try_word_fit.R
try_word_fit.Rd
Returns a list consisting of a logical value indicating whether or not the proposed word fits the puzzle array, a two integer vector of the row and column location of the first character, and a two integer vector that determines the direction of the word's orientation. try_word_fit() - the characters found within the array, an row and column location in a two integer vector
try_word_fit(puzzle_array, word, direction, specifications)
puzzle_array | character vector containing the puzzle |
---|---|
word | 1 element character vector containing the word being placed in the puzzle |
direction | character vector of one element that specifies the proposed direction. |
specifications | puzzle specifications |