예제 #1
0
        void tmr_Tick(object sender, EventArgs e)
        {
            //after 3 sec stop the timer
            tmr.Stop();
            //display Form1
            Othello Frm1 = new Othello();

            Frm1.Show();
            //hide Splash form
            this.Hide();
        }
예제 #2
0
        public static void Main(string[] args)
        {
            ColorPrint.Write("OTHELLO GAME - C#\n", Color.Green);
            // try to read board size from command line args
            if (args.Length == 0 || !int.TryParse(args[0], out var boardSize))
            {
                boardSize = GetBoardSize();
            }
            else
            {
                Console.WriteLine($"Using board size: {boardSize}");
            }

            var game = new Othello(boardSize);

            game.Play();
        }