Search Unity

2D Grid Word Detection Algorithm for a Scrabble Game

Discussion in 'Scripting' started by jGate99, Oct 20, 2019.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,943
    Hi there,

    I am building a scrabble game with only difference is that user can start making words from anywhere (no centre tile limit), and I have already a dictionary working.

    When the user will place letters on grid, I need to check that all the words are valid. Which algorithm can I use or how can I go through each cell of that grid to validate which are words in an efficient way ?

    I tried googling but most of search results are about filling the grid with words. What I need is different, since the user has placed letters and I only need to validate which are actual words and not

    Thanks