update testLongestRoad

This commit is contained in:
schrom01 committed 2021-12-10 08:31:45 +01:00
1 parent 99eab9ad69
commit 3b721301fa
2 files changed
+6 -3

No files matched your search

+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.