Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special Card - Longest Road Claim / Transfer to Another Player [Medium] #15

Open
rogersanick opened this issue Jul 2, 2019 · 1 comment

Comments

@rogersanick
Copy link
Owner

In Settlers of Catan, the first player to achieve the longest road (with 5+ roads) is able to claim a token representing a certain number of victory points. We need to enable them to do so in Settlers of CorDan as well!

This issue depends on: N/A

To complete this task we need to:

// States
Create a Special Card state to represent the longest road card

// Flows

  • Create a flow to claim the longest road
  • Create a flow to transfer ownership of the longest road from one player to another (note: this should be done by a new claimant who is able to prove they have the new longest road)

// Contracts

  • Create a contract to govern the largest army state

// BONUS POINTS

  • Mitigate the denial of longest road attack - where the first player to claim the largest army refuses to transfer ownership of it later.
@rogersanick rogersanick changed the title Special Card - Longest Road Claim / Transfer to Another Player Special Card - Longest Road Claim / Transfer to Another Player [Medium] Jul 2, 2019
@abellagonzalo
Copy link
Contributor

Requirements

What is the Longest Road
The Longest Road is a continuous road connecting two intersections, which consists of at least 5 individual road pieces and is not interrupted by game pieces belonging to other players. It has more individual road pieces than any other connecting road of this type.

Roads can be circular
On Catan the circle is a hexagon. When counting the individual road pieces, it doesn’t matter whether or not they are built in a more or less straight line - what matters is that they establish an uninterrupted connection between two intersections. This is why 6 road pieces connected in a hexagonal fashion still count as 6 road pieces.

Opponent's settlements interrupt Longest Roads
By building a settlement on an intersection of the Longest Road. Needless to say that you must observe all building rules when doing this. Own settlements do not interrupt Longest Road.

Same length roads do not receive the card
If a player builds a continuous road that has the same length as the road belonging to the owner of the Longest Road card, the card stays with its current owner.

Longest road is interrupted

  • If the player who up to this point had the Longest Road still meets the requirements for the Longest Road (either alone or together with another player), he keeps the card.
  • If another player now meets the requirements for the Longest Road, he receives the card.
  • If none of the players - or more than one player - meets the requirements for the Longest Road, none of the players receives the card.

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

No branches or pull requests

2 participants