update testLongestRoad

This commit is contained in:
schrom01
2021-12-10 08:31:45 +01:00
parent 99eab9ad69
commit 3b721301fa
2 changed files with 6 additions and 3 deletions
+5
View File
@@ -185,6 +185,11 @@ public class SiedlerBoard extends HexBoard<Config.Land, Settlement, Road, String
return longestRoadFaction;
}
//todo javadoc
public int getLongestRoadLenth() {
return longestRoadLenth;
}
/**
* This method is recursive and adds all roads which belongs to a specific players and stringing together to a HashSet.
* The length of the HashSet represents the length of the longest Road the player has.