public static void MaxofTwelveCows() { Morabaraba tester = new Morabaraba(); for (int i = 0; i < 24; i++) { tester.Move(i); } var p1 = tester.Turn(true); var p2 = tester.Turn(false); Assert.That(p1.GetUnplaced() == 0 && p2.GetUnplaced() == 0); }
public static void P1Dark() { Morabaraba currentGameSession = new Morabaraba(); bool check = currentGameSession.Turn(true).GetCow().Get() == MorabarabaNS.Models.ColorType.Colour.Dark; Assert.That(check); }
public static void CheckShootCowInMillB(int val1, int val2, int val3) //tests for all cases //this checks that a cow can be shoot when there are only mills on the board { Morabaraba morabaraba = new Morabaraba(); morabaraba.Move(val1); //p1 morabaraba.NextTurn(); morabaraba.Move(val2); //p1 morabaraba.NextTurn(); morabaraba.Move(val3); //p1 morabaraba.Changeremoving(); Helpers.IValidPositionVerifier verifier = new Helpers.ValidPositionVerifier(morabaraba.CurrentBoard); Assert.That(verifier.VerifyCanShoot(val1, morabaraba.Turn())); }
public static void CheckShootCowInMillA(int val1, int val2, int val3, int randoval) //tests for all cases { Morabaraba morabaraba = new Morabaraba(); morabaraba.Move(randoval); morabaraba.Move(val1); morabaraba.NextTurn(); morabaraba.Move(val2); morabaraba.NextTurn(); morabaraba.Move(val3); morabaraba.NextTurn(); Helpers.IValidPositionVerifier verifier = new Helpers.ValidPositionVerifier(morabaraba.CurrentBoard); Assert.That(verifier.VerifyCanShoot(randoval, morabaraba.Turn())); }