I am currently writing such a game in C #. I can get the computer to find the highest point words that can be made using the current rack, however I have no idea how to check if this word is βPlaceableβ on the game board 15 * 15 (2D array: string [,] )
In this state, by default (without letters on the board), all elements are set to 0.
Allowed
How to check for a word? For instance:
Is not allowed
--------------- -H------------- -E------------- FILL------------ <-- F is out of bounds -L------------- -O------------- ---------------
Is not allowed
--------------- -H------------- -EW----------- -LO----------- -LR----------- FOLL----------- <-- Fill is overlapping with O ---D-----------
source share