コード例 #1
0
        public static void gameTest()
        {
            GameStrategy game = new GameStrategy();

            int[] cellId = { 5, 11, 17, 31, 34, 48, 54, 60, 52 };
            for (int i = 0; i < cellId.Length; i++)
            {
                try
                {
                    MessageBox.Show(game.isValidPostion(5).ToString());
                }
                catch (GameOverException e)
                {
                    MessageBox.Show("Game Over!!");
                }
            }
        }