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

Automated ship movement - searching for resources #93

Merged
merged 1 commit into from
Aug 6, 2018

Conversation

miniature-tiger
Copy link
Owner

Changes focus on decision making relating to the search for resources pieces for undamaged computer opponent ships.

automove.js

  • rankDestinations: Method ranks potential destinations on map for move choice related to resource pieces search. Best options are returned as array.
  • computerMove: Game logic for computer opponent moves updated for undamaged ship resource searching.

movement.js

  • paintFindPath: Method updated to capture all Resource harbours (valid sea tiles next to Resource pieces). Array format required as each tile could contain many different Resource harbours.

pirates.js

  • useTelescope: Method updated to return more information from scanning of map - this is needed for ranking.

Changes focus on decision making relating to the search for resources pieces for undamaged computer opponent ships.
@miniature-tiger miniature-tiger merged commit 9be9e8c into master Aug 6, 2018
@miniature-tiger miniature-tiger deleted the miniature-tiger-patch-86 branch November 13, 2018 10:40
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