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

Update ShipPlanner.java #37

Merged
merged 1 commit into from
Nov 14, 2020
Merged

Update ShipPlanner.java #37

merged 1 commit into from
Nov 14, 2020

Conversation

sstanham
Copy link

This push is to fix the error that a player can start the game without placing their last ship. This is done by clicking anywhere a ship cannot be placed. I fixed this by adding a check in line 217, checking if the mouseclick is a valid location, and only recording the action if it is valid.

This push is to fix the error that a player can start the game without placing their last ship. This is done by clicking anywhere a ship cannot be placed. I fixed this by adding a check in line 217, checking if the mouseclick is a valid location, and only recording the action if it is valid.
@Sokom141 Sokom141 self-requested a review November 14, 2020 20:01
@Sokom141 Sokom141 added this to the 1.0 milestone Nov 14, 2020
@Sokom141 Sokom141 linked an issue Nov 14, 2020 that may be closed by this pull request
@Sokom141 Sokom141 added bug Something isn't working good first issue Good for newcomers labels Nov 14, 2020
Copy link
Owner

@Sokom141 Sokom141 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @sstanham, thank you for contributing to this project.
Hopefully you will stick around 😃

@Sokom141 Sokom141 merged commit 43b49a6 into Sokom141:develop Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It's possible to start the game without placing all the ships
2 participants