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

Adding trade routes #45

Merged
merged 1 commit into from Apr 29, 2018
Merged

Adding trade routes #45

merged 1 commit into from Apr 29, 2018

Conversation

miniature-tiger
Copy link
Owner

  • Trade route SVG board layer added (createTradeRouteLayer)
  • Method (tradeRoute) added to draw an SVG path in team colours based on an array of tile coordinates
  • Circle end points added for each end of SVG trade route path
  • Method (initialiseTradePath) to initialise tradePath array which holds board size (i rows x j columns) array of paths
  • Method (nearestHarbour) added which finds best sea harbour tiles next to Resource and Fort start and end points.
  • Methods (discoverPath, pathTiles, pathCost) added which find most direct trade route between two points, avoiding islands.
  • Trade route creation added to game flow logic.

@miniature-tiger miniature-tiger merged commit be3f092 into master Apr 29, 2018
@miniature-tiger miniature-tiger deleted the miniature-tiger-patch-42 branch November 13, 2018 10:39
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.

None yet

1 participant