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

Destroyed ships will not be revived when bombed #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

relsmoler
Copy link

Summary

Fixed bug: ships that were already destroyed will not be "revived" when bombed.

Details and comments

Implementation: updated the bomb array to mark destroyed ships. The relevant quantum operation then takes the ships state and number of bombs into consideration to calculate the ships current status.
If "reviving" already destroyed ships back to life when bombed was planned as a feature - feel free to ignore this suggested fix and close this PR.

@relsmoler relsmoler force-pushed the bugfix/battleships-engine-destroyed-ships branch from f2c5283 to 016e876 Compare January 25, 2020 17:11
@relsmoler relsmoler force-pushed the bugfix/battleships-engine-destroyed-ships branch from 016e876 to f0826dd Compare January 25, 2020 17:13
@relsmoler relsmoler changed the title destroyed ships will not be revived when bombed Destroyed ships will not be revived when bombed Jan 25, 2020
@CLAassistant
Copy link

CLAassistant commented Mar 9, 2020

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
All committers have signed the CLA.

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