public static string To2DSimple(string word) { ValidateInput(word); var matrix = new QuberMatrix(word.Length); WriteHalfBoard(matrix, word); return(matrix.ToString()); }
public static string To3D(string word) { ValidateInput(word); var matrix = new QuberMatrix(GetBoardBoundaryFor3D(word)); var offset = GetWordLengthByTwo(word); WriteAllBoard(matrix, word); WriteAllBoard(matrix, word, offset); matrix.DrawIncrementingTimes('\\', new Point(1, 1), offset - 1); matrix.DrawIncrementingTimes('\\', new Point(1, word.Length), offset - 1); matrix.DrawIncrementingTimes('\\', new Point(word.Length, 1), offset - 1); matrix.DrawIncrementingTimes('\\', new Point(word.Length, word.Length), offset - 1); return(matrix.ToString()); }