public void SetUp() { gb = new GameBoard(); gb.dimensions = new IntVector2(10, 20); gb.Start(); gen = new GameBoardGenerator(gb); }
public void StartGame(int pm, int dm, int cm) { Board = new GameBoard(); Board.PlayerMode = (pm == 0 ? PlayerMode.Single : PlayerMode.Couple); Board.AI.Difficulty = (dm == 0 ? DifficultyMode.Easy : DifficultyMode.Normal); Board.PlayerCamp = (cm == 0 ? Camp.Wolf : Camp.Sheep); Board.MapChanged += Board_MapChanged; Board.GameOver += Board_GameOver; Board.Start(); }
public void Empty_MarkConnectedMarksAll() { for (int scale = 1; scale < 20; scale++) { gb.dimensions = new IntVector2(scale, scale); gb.Start(); gen.MarkConnected(); Assert.IsTrue(gen.VerifyMarks(), "Fail on scale " + scale); } }