try_word_fit: Returns a list consisting of a logical value indicating...

Description Usage Arguments

Description

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

Usage

1
try_word_fit(puzzle_array, word, direction, specifications)

Arguments

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


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