Skip to content

0xcaff/wordsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a75c244 · Nov 24, 2023
Nov 24, 2023
Oct 24, 2017
May 24, 2020
Nov 24, 2023
Nov 22, 2018
May 24, 2020
May 24, 2020
May 23, 2020
May 24, 2020
Oct 24, 2017
Nov 24, 2023
May 24, 2020
Nov 24, 2023
Feb 17, 2020
May 24, 2020

Repository files navigation



The Wordsearch Solver

A wordsearch solver with quick image input and an interactive viewer.

Live Site | Launch Blog Post

Solving a wordsearch is basically two dimensional string search. This wordsearch solver makes it easy to input wordsearches, solve them and view the results interactively.

How it Works

There are two ways to enter a puzzle into this solver.

  1. Using a text input. The puzzle and words are entered into text boxes. DraftJS is used for the puzzle text box to ensure that the area around each letter is a square instead of a rectangle for easier input.

    text-input

  2. Using an image selector. After an image is selected, it is sent to the google cloud vision api which returns a list of letters in the image and their bounding boxes. The user is prompted to select the region of the puzzle and the regions of each of the words in the image. The selected letters from the puzzle are arranged into a grid of letters using a kernel density estimator to find the rows and columns making up the puzzle, then finding the letters nearest to grid intersections.

    image-input

Now that the puzzle and the words to find have been imported we have enough information to send to the wordsearch solver algorithm.

The wordsearch solver algorithm takes in a puzzle along with a list of words and returns a list of matches (word -> list of nodes making up a word).

The result is displayed in an interactive viewer.

view

About

A thoughtfully designed, interactive word search solver.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published