コード例 #1
0
        public void PlayerWithRedCowsGoesFirst()
        {
            //TODO: Make sure that the the player who goes first has the dark cows
            IGameSession gameSession = GameSessionFactory.CreateGameSession();

            Assert.AreEqual(gameSession.Current_Player.Color, Color.Red);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: CorbynL/Morabaraba-9001
        static void Main(string[] args)
        {
            // Set the stage
            SetConsoleProperties();

            IGameSession gameSession = GameSessionFactory.CreateGameSession();

            gameSession.Start();

            if (Console.ReadLine() == "y")
            {
                Main(null);
            }
            else
            {
                Environment.Exit(0);
            }
        }