Word search game written in Swift.
- word generator fetches words via an async GET request, and generates
n
words in the specified range - words are placed in random positions and directions in a 2D array
- the algorithm is optmized to check a maximum of 3/8 directions, and uses the pythagorean theorem on each to determine the line closest to the drag position
- status bar tracks the number of words found and the current selection, achieved using SwiftUI states