bool DidSolveClue(TileLogic tile, bool isAcross, string[] grid) { int offset = 1; string answer = tile.GetCurrentAnswer(isAcross); if (!isAcross) { offset = (int)Mathf.Sqrt(tiles.Length); } for (int i = 0; i < answer.Length; i++) { string letter = grid[tile.index + i * offset]; if (answer.Substring(i, 1) != letter) { return(false); } } return(true); }
public void ClearAllInput() { //currentUserText = ""; currentUserInput = BlankGrid(currentTile.GetCurrentAnswer(currentDirectionIsAcross).Length); UpdateBoardTilesText(); }