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

Game Utilities - Connecting roads in data structures [Hard] #8

Open
rogersanick opened this issue May 2, 2019 · 0 comments
Open

Game Utilities - Connecting roads in data structures [Hard] #8

rogersanick opened this issue May 2, 2019 · 0 comments

Comments

@rogersanick
Copy link
Owner

rogersanick commented May 2, 2019

Roads need to be connected when placed so that we can verifiably count the length of a given road on the game board (and all of its branches).

An alternative would be to query for all the road states and do manual checks to determine the length of the longest continuous road state.

// States

  • RoadStates have a connect function - which links them end to end. This must be expanded to reflect there being two possible connections by two possible roads (if and only if another road has not previously been built there).

// Contracts

  • Add
@rogersanick rogersanick changed the title Road Connecting Longest Road May 2, 2019
@rogersanick rogersanick changed the title Longest Road Players should be able to claim the longest road title and associated VP May 2, 2019
@rogersanick rogersanick changed the title Players should be able to claim the longest road title and associated VP Game Utilities - Connecting roads in data structures [Hard] Jul 2, 2019
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

1 participant