-
Notifications
You must be signed in to change notification settings - Fork 10
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
The last successfull hit doesn't update the board color #32
Comments
Hi again! I can try to tackle this bug. |
Hi @sstanham! |
Sorry for the delay, I will be working on this issue throughout the next few days. |
No worries, take the time you need |
Hi again, sorry for the delay, I'm working on the bug as we speak. I'm looking through the files and I'm trying to find where the code stops if all the ships are destroyed, or runs again if both players have ships remaining. Would this be in the GUI folder? |
Hi @sstanham, sorry for the late replay but University is getting harder 😭 You will find the code that need the fix inside the |
Don't worry @Sokom141, I'm with you there on the University grind 😄 I will take a look at the section you believe is the culprit today, but I also have another question; Are you able to walk me through how to play an entire game on the same device? Or is it only possible via LAN and the internet for now? |
Hey @sstanham ! On the same device: Over LAN/Internet the flow is pretty much the same, just need for the client to input the right local or remote IP and for the server to open the port / create a rule on the firewall if necessary. Let me know if you're able to play! |
Running the code locally returns a "Connection Closed" error, I'm running with a port of 10000. Any suggestions? |
Just to make sure, are you running the latest development branch? |
I believe so, allow me to redownload the branch |
Yes, the error occurs on the latest branch. On a side note, for the issue at hand, does the last successful hit not update the color for the winner, the loser, or both players? |
If I'm not mistaken for the winner. As for the error please make sure in the application settings you have a user avatar, without one the game won't be able to start |
Ok, I got it to work! Furthermore, I have identified that for the losing player, they are fine. For the winner, it's the fact that it turns the incorrect color. I'll see what I can do😄 |
Good news, thank you! |
#39 Just submitted a pull request! How I solved it is in the description, feel free to check it out Edit: I seem to be encountering an issue linking the pull request to this issue. Could you help me with that? |
Good! I will now review it. |
Right before winning the game, if the last ShipUnit is hitted the background color of the clicked button doesn't change to the color set to indicate an hit.
The text was updated successfully, but these errors were encountered: