jdmonin / JSettlers2

Java Settlers project home, downloads, and GPLv3 source code. To download the latest version as a JAR, see https://github.com/jdmonin/JSettlers2/releases/latest .
http://nand.net/jsettlers/
GNU General Public License v3.0
157 stars 63 forks source link

Bug - Dividing the longest road #96

Closed Zbychlew closed 2 years ago

Zbychlew commented 2 years ago

Hello Team, I found another error case with the longest road (jsettlers version 2.4.00):

  1. Player1 creates a layout as shown in the diagram below (A and B are villages, C is empty)
  2. Player2 has a road length of 5
  3. Player3 builds a village at point C, points do not count - Player1 has the longest road!
    |
    /  \
    A   B
    |    |
    \   /
    C
Zbychlew commented 2 years ago

Sorry my bug, Player1 has a path length of 6.

jdmonin commented 2 years ago

No worries; thanks for taking the time to write up the potential bug.