From 83dd4cc4a3c4a0a6bc2a7fd25505fd396bfcba11 Mon Sep 17 00:00:00 2001 From: Lucas Morgan Date: Tue, 26 Nov 2024 15:26:47 -0600 Subject: [PATCH] Group pieces in the hand. --- .../GameBoard/GameBoardPresentation.razor | 38 +++++++++++++++---- .../GameBoard/GameboardPresentation.razor.css | 5 ++- Shogi.UI/Pages/Play/GamePiece.razor | 20 +++++----- Shogi.UI/Pages/Play/GamePiece.razor.css | 20 ++++++++-- 4 files changed, 62 insertions(+), 21 deletions(-) diff --git a/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor b/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor index ad69a4a..21679ab 100644 --- a/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor +++ b/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor @@ -11,13 +11,15 @@ var position = $"{file}{rank}"; var piece = Session?.BoardState.Board[position]; var isSelected = piece != null && SelectedPosition == position; -
@if (piece != null) { - + }
} @@ -49,13 +51,27 @@ @if (Session != null && UseSideboard == true) { + @* *@ +