Get possible intersection points based on the current board and a provided word

word_intersections(x, word = "needles")

Arguments

x

word matrix

word

the word to add (character/scalar)

Value

for each direction, a matrix of crossing-point counts