Skip to content

Commit

Permalink
Added Visual Hit Previews (Fixed)
Browse files Browse the repository at this point in the history
Github didn't catch one of the changed files, this is a re-upload.
  • Loading branch information
PDykes1996 committed Sep 14, 2024
1 parent 3c21ecf commit 9271009
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 2 deletions.
Binary file modified .vs/BlazorBattleship/v17/.futdcache.v2
Binary file not shown.
Binary file modified .vs/BlazorBattleship/v17/.suo
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/blazorbattleship.metadata.v5.2
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/blazorbattleship.projects.v5.2
Binary file not shown.
6 changes: 5 additions & 1 deletion BlazorBattleship/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@
#region Opponent Board
private string OpponentBoardInfo(int x, int y)
{
if(opponentDefaultBoard[x,y] && opponentBoard[x,y])
if(coordinates.HasValue && coordinates.Value.x == x && coordinates.Value.y == y && !opponentDefaultBoard[x,y])
{
return "hit-preview";
}
else if(opponentDefaultBoard[x,y] && opponentBoard[x,y])
{
return "hit";
}
Expand Down
Binary file modified BlazorBattleship/bin/Debug/net6.0/BlazorBattleship.dll
Binary file not shown.
Binary file modified BlazorBattleship/bin/Debug/net6.0/BlazorBattleship.pdb
Binary file not shown.
Binary file modified BlazorBattleship/obj/Debug/net6.0/BlazorBattleship.dll
Binary file not shown.
Binary file modified BlazorBattleship/obj/Debug/net6.0/BlazorBattleship.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion BlazorBattleship/obj/Debug/net6.0/project.razor.vs.json

Large diffs are not rendered by default.

0 comments on commit 9271009

Please sign in to comment.