Ejemplo n.º 1
0
        public void CheckBeterFirstPlayerMove()
        {
            //TODO: Test interface not helper methods
            var move = BetterFirstPlayer.MinMove(Sequence("02012"), 3, 7);

            Assert.AreEqual(1, move.Position);
            move = BetterFirstPlayer.MinMove(Sequence("01202"), 3, 7);
            Assert.AreEqual(2, move.Position);
        }
Ejemplo n.º 2
0
 private void SetupVersion()
 {
     if (Version == "Komputer vs. Człowiek")
     {
         FirstPlayer  = new FirstPlayer();
         SecondPlayer = new HumanPlayer();
     }
     else if (Version == "Komputer II vs. Człowiek")
     {
         FirstPlayer  = new BetterFirstPlayer();
         SecondPlayer = new HumanPlayer();
     }
     else if (Version == "Komputer vs. Komputer")
     {
         FirstPlayer  = new FirstPlayer();
         SecondPlayer = new SecondPlayer();
     }
     else
     {
         FirstPlayer  = new BetterFirstPlayer();
         SecondPlayer = new BetterSecondPlayer();
     }
 }