Exemplo n.º 1
0
 public void DrawBoard(int boardsize, int boardx, int boardy)
 {
     char[][] board = ui.GetBoard();
     for (int i = 0; i < board.Length; i++)
     {
         for (int j = 0; j < board.Length; j++)
         {
             drawTextString(board [i][j].ToString(), boardsize / 15, boardx + (i * boardsize / 15), boardy + (j * boardsize / 15));
             drawTextString(ui.GetBoardLetters()[i][j].ToString(), boardsize / 15, boardx + (i * boardsize / 15), boardy + (j * boardsize / 15));
         }
     }
 }
Exemplo n.º 2
0
        private void findVertBoardWords()
        {
            char[][] board = uit.GetBoard();
            String   temp  = "";

            for (int x = 0; x < 15; x++)
            {
                for (int y = 0; y < 15; y++)
                {
                    if (board [x] [y] != '#')
                    {
                        temp += board [x] [y];
                    }
                    else if (temp.Length > 0)
                    {
                        vertResults.Add(temp);
                        vertCords.Add(new int[] { x, y - temp.Length });
                        temp = "";
                    }
                }
            }
        }