Skip to content

fix(S-378): skip enemy settlements in longest road calculation - #379

Open
BriacLeGuilloux wants to merge 1 commit into
bcollazo:mainfrom
BriacLeGuilloux:S-378
Open

fix(S-378): skip enemy settlements in longest road calculation#379
BriacLeGuilloux wants to merge 1 commit into
bcollazo:mainfrom
BriacLeGuilloux:S-378

Conversation

@BriacLeGuilloux

Copy link
Copy Markdown

Hello,

I am a datascientist and I love Catan.
I am interested to help this project and to develop on it.

Please see a contribution. I am also on the discord: briac__35

@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

👷 Deploy request for catanatron-staging pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 457a813

@broussal

broussal commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Hello, I've raised the issue #378 that you're trying to solve

I don't think your fix adresses the issue, actually it makes it worse

That's because setting an enemy node as your starting point does not causes the issue, it mitigates it. You want to be able to set an enemy node as your starting point AND ending point without ever going through one

@BriacLeGuilloux

Copy link
Copy Markdown
Author

Hello,
Thank you for your answer.
I do not understand your point.
My PR only modify longest_acyclic_path, which calculate the longest path.

What I wanted to do, was to modify the calcul of the longest road, if an ennemy colony is set (as described in the ticket).

I tried to recreate the same board as the ticket and checked to see, if the calcul change. But I was able to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants