public void TestInitialize() { var r = " L L L L " + " L L L L " + " L L L L "; this.Board = new Board <TerraTile>() { Tiles = HexTileBuilder.CreateHexGrid(4, 3, r.Parse().ToArray()), }; foreach (var tile in this.Board.Tiles) { tile.Owner = Player; } }
internal IBoard <TerraTile> Build() { var r = " P M F L D W P S W F L W S " + " D R R P S R R D S R R D V " + " V R S R M R F R F R M R V " + " F L D R R W L R W R W P V " + " S P W L S P M D R R F S L " + " M F R R D F R R R P M P V " + " V R R M R W R F R D S L D " + " D L P R R R L S R M P M V " + " W S M L W F D W M R L F W "; return(new Board <TerraTile>() { Tiles = HexTileBuilder.CreateHexGrid(13, 9, r.Parse().ToArray()), }); }
public void TestInitialize() { var r = " L L L L " + " L L L L " + " L L L L "; this.Race = new TestRace(); this.ModifyRaceBeforeTest(); this.Player = new TestPlayer(race: this.Race); this.Board = new Board <TerraTile>() { Tiles = HexTileBuilder.CreateHexGrid(4, 3, r.Parse().ToArray()), }; this.ModifyPlayerBeforeTest(); }