示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("************WELCOME TO THE GAME OF BOGGLE*****************");
            Console.Write("            written by");
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" Sandip Timsina");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Send in your feedback to [email protected]");
            Console.WriteLine("\n");
            Console.WriteLine("*********************Rules**********************");
            Console.WriteLine("* Start with a letter and move in any direction to its adjacent neighbor");
            Console.WriteLine("and continue until you find a valid word");
            Console.WriteLine("The 'Qu' cube counts as two letters");
            Console.WriteLine("* You cannot repeat a word");
            Console.WriteLine("* You have to complete the game in 3 minutes\n");
            Console.WriteLine("*******************SCORE************************");
            Console.WriteLine("NO. OF LETTERS   3    4    5    6    7   8 or more");
            Console.WriteLine("----------------------------------------------------");
            Console.WriteLine("POINTS           1    1    2    3    5   11");
            Console.WriteLine("************************************************");
            Console.WriteLine("\n");
            objDictionary = new clsDictionary();
            clock         = totalTime;
            parents       = new List <string>();

            tick = new Thread(runClock);
            tick.Start();
            prepareBoard();


            for (int i = 0; i < 4; i++)
            {
                Console.ForegroundColor = ConsoleColor.Yellow;
                Console.WriteLine();
                for (int j = 0; j < 4; j++)
                {
                    Console.Write("      " + board[i, j]);
                }
            }
            Console.BackgroundColor = ConsoleColor.Red;
            Console.WriteLine();
            beginProcess();

            Console.ReadKey();
        }
示例#2
0
        static void Main(string[] args)
        {
            Console.WriteLine("************WELCOME TO THE GAME OF BOGGLE*****************");
            Console.Write("            written by");
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" Sandip Timsina");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Send in your feedback to [email protected]");
            Console.WriteLine("\n");
            Console.WriteLine("*********************Rules**********************");
            Console.WriteLine("* Start with a letter and move in any direction to its adjacent neighbor");
            Console.WriteLine("and continue until you find a valid word");
            Console.WriteLine("The 'Qu' cube counts as two letters");
            Console.WriteLine("* You cannot repeat a word");
            Console.WriteLine("* You have to complete the game in 3 minutes\n");
            Console.WriteLine("*******************SCORE************************");
            Console.WriteLine("NO. OF LETTERS   3    4    5    6    7   8 or more");
            Console.WriteLine("----------------------------------------------------");
            Console.WriteLine("POINTS           1    1    2    3    5   11");
            Console.WriteLine("************************************************");
            Console.WriteLine("\n");
            objDictionary = new clsDictionary();
            clock = totalTime;
            parents = new List<string>();

            tick = new Thread(runClock);
            tick.Start();
            prepareBoard();

            for (int i = 0; i < 4; i++)
            {
                Console.ForegroundColor = ConsoleColor.Yellow;
                Console.WriteLine();
                for (int j = 0; j < 4; j++)
                {

                        Console.Write("      " + board[i,j]);
                }
            }
            Console.BackgroundColor = ConsoleColor.Red;
            Console.WriteLine();
            beginProcess();

            Console.ReadKey();
        }