From 0eb75994c985aa7a78957a0419bca911c1b802a7 Mon Sep 17 00:00:00 2001 From: Lucas Morgan Date: Sat, 7 Sep 2024 03:41:11 +0000 Subject: [PATCH] Getting started on how-to-play instructions. --- Shogi.Database/FirstTimeSetup.sql | 1 + Shogi.UI/Layout/MainLayout.razor.css | 1 + Shogi.UI/Pages/Home/HomePage.razor | 50 +++ Shogi.UI/Pages/{ => Home}/HomePage.razor.css | 5 +- .../Pages/Home/VisualAids/BishopMoves.razor | 248 ++++++++++++ .../Home/VisualAids/BoardSetupVisualAid.razor | 108 ++++++ .../VisualAids/BoardSetupVisualAid.razor.css | 5 + .../Pages/Home/VisualAids/DragonMoves.razor | 315 +++++++++++++++ .../Home/VisualAids/GoldGeneralMoves.razor | 331 ++++++++++++++++ .../Pages/Home/VisualAids/HorseMoves.razor | 260 +++++++++++++ .../Pages/Home/VisualAids/KingMoves.razor | 363 ++++++++++++++++++ .../Pages/Home/VisualAids/KnightMoves.razor | 317 +++++++++++++++ .../Pages/Home/VisualAids/LanceMoves.razor | 327 ++++++++++++++++ .../Pages/Home/VisualAids/PawnMoves.razor | 346 +++++++++++++++++ .../Home/VisualAids/PieceMovesVisualAid.razor | 51 +++ .../VisualAids/PieceMovesVisualAid.razor.css | 14 + .../Home/VisualAids/PromotedKnightMoves.razor | 350 +++++++++++++++++ .../Home/VisualAids/PromotedLanceMoves.razor | 351 +++++++++++++++++ .../Home/VisualAids/PromotedPawnMoves.razor | 358 +++++++++++++++++ .../VisualAids/PromotedPieceVisualAid.razor | 40 ++ .../PromotedPieceVisualAid.razor.css | 14 + .../Home/VisualAids/PromotedSilverMoves.razor | 261 +++++++++++++ .../Pages/Home/VisualAids/RookMoves.razor | 257 +++++++++++++ .../Pages/Home/VisualAids/SilverMoves.razor | 278 ++++++++++++++ Shogi.UI/Pages/Home/_Imports.razor | 1 + Shogi.UI/Pages/HomePage.razor | 26 -- .../GameBoard/GameBoardPresentation.razor | 10 +- .../GameBoard/GameboardPresentation.razor.css | 5 +- Shogi.UI/Pages/Play/Pieces/Bishop.razor | 1 - Shogi.UI/Shogi.UI.csproj | 2 + Shogi.UI/wwwroot/css/app.css | 1 + 31 files changed, 4666 insertions(+), 31 deletions(-) create mode 100644 Shogi.UI/Pages/Home/HomePage.razor rename Shogi.UI/Pages/{ => Home}/HomePage.razor.css (56%) create mode 100644 Shogi.UI/Pages/Home/VisualAids/BishopMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/BoardSetupVisualAid.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/BoardSetupVisualAid.razor.css create mode 100644 Shogi.UI/Pages/Home/VisualAids/DragonMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/GoldGeneralMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/HorseMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/KingMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/KnightMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/LanceMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/PawnMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/PieceMovesVisualAid.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/PieceMovesVisualAid.razor.css create mode 100644 Shogi.UI/Pages/Home/VisualAids/PromotedKnightMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/PromotedLanceMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/PromotedPawnMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/PromotedPieceVisualAid.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/PromotedPieceVisualAid.razor.css create mode 100644 Shogi.UI/Pages/Home/VisualAids/PromotedSilverMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/RookMoves.razor create mode 100644 Shogi.UI/Pages/Home/VisualAids/SilverMoves.razor create mode 100644 Shogi.UI/Pages/Home/_Imports.razor delete mode 100644 Shogi.UI/Pages/HomePage.razor diff --git a/Shogi.Database/FirstTimeSetup.sql b/Shogi.Database/FirstTimeSetup.sql index 1ff3da0..60b5b76 100644 --- a/Shogi.Database/FirstTimeSetup.sql +++ b/Shogi.Database/FirstTimeSetup.sql @@ -10,5 +10,6 @@ /** * Local setup instructions, in order: * 1. To setup the Shogi database, use the publish menu option in visual studio with the Shogi.Database project. +* 2. Install the Entity Framework dotnet tools, via power shell run this command: dotnet tool install --global dotnet-ef * 2. To setup the Entity Framework users database, run this powershell command using Shogi.Api as the target project: dotnet ef database update */ \ No newline at end of file diff --git a/Shogi.UI/Layout/MainLayout.razor.css b/Shogi.UI/Layout/MainLayout.razor.css index 9cffbdb..e5f4fa9 100644 --- a/Shogi.UI/Layout/MainLayout.razor.css +++ b/Shogi.UI/Layout/MainLayout.razor.css @@ -2,4 +2,5 @@ display: grid; grid-template-columns: auto 1fr; place-items: stretch; + height: 100vh; } \ No newline at end of file diff --git a/Shogi.UI/Pages/Home/HomePage.razor b/Shogi.UI/Pages/Home/HomePage.razor new file mode 100644 index 0000000..878630a --- /dev/null +++ b/Shogi.UI/Pages/Home/HomePage.razor @@ -0,0 +1,50 @@ +@page "/" + +@using Shogi.Contracts.Types +@using System.Net.WebSockets +@using System.Text + +
+

What is Shogi?

+

Shogi is a two-player strategy game where each player simultaneously protects their king while capturing their opponent's.

+

Players take turns, moving one piece each turn until check-mate is achieved.

+ +

How to Play

+ +

Setup

+

Arrange the board so it looks like this. Take note of the Rook and Bishop positions for each player.

+ + +

Pieces and Movement

+

Each piece has a unique set of moves. Some pieces, like the Pawn, may move only one tile per turn. Other pieces, like the Bishop, may move multiple tiles per turn.

+

A tile may only hold one piece and, except for the Knight, pieces may never move through each other.

+

Should your piece enter the tile of an opponent's piece, you must stop there and capture the opponent's piece.

+ + +

Promotion

+

The furthest three ranks from your starting position is an area called the promotion zone. A piece may promote at the end of the turn when it moves in to, out of, or within the promotion zone.

+

Promoting changes the move-set available to the peice, and a piece must promote if it has no legal, future moves. An example of this is a Pawn moving the the furthest rank on the board such that it cannot go further. In this case, the Pawn must promote.

+

All pieces may promote except for the Gold General and King.

+ + +

Capturing and the Hand

+

The King and "Check"

+

Victory

+ +
+ +@code { + + private string activeSessionName = string.Empty; + + private Task OnLoginChanged() + { + StateHasChanged(); + return Task.CompletedTask; + } + private void OnChangeSession(SessionMetadata s) + { + activeSessionName = s.SessionId.ToString(); + StateHasChanged(); + } +} diff --git a/Shogi.UI/Pages/HomePage.razor.css b/Shogi.UI/Pages/Home/HomePage.razor.css similarity index 56% rename from Shogi.UI/Pages/HomePage.razor.css rename to Shogi.UI/Pages/Home/HomePage.razor.css index 68296ad..7fdd8dc 100644 --- a/Shogi.UI/Pages/HomePage.razor.css +++ b/Shogi.UI/Pages/Home/HomePage.razor.css @@ -1,4 +1,7 @@ .shogi { background-color: var(--primary-color); color: white; -} \ No newline at end of file + padding: 1rem; + padding-top: 0; + overflow: auto; +} diff --git a/Shogi.UI/Pages/Home/VisualAids/BishopMoves.razor b/Shogi.UI/Pages/Home/VisualAids/BishopMoves.razor new file mode 100644 index 0000000..cb0849d --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/BishopMoves.razor @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} \ No newline at end of file diff --git a/Shogi.UI/Pages/Home/VisualAids/BoardSetupVisualAid.razor b/Shogi.UI/Pages/Home/VisualAids/BoardSetupVisualAid.razor new file mode 100644 index 0000000..8ad5251 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/BoardSetupVisualAid.razor @@ -0,0 +1,108 @@ +@using Shogi.Contracts.Types + +
+ +
+ +@code { + + private Session fakeSession = new Session + { + BoardState = new BoardState + { + Board = new Dictionary + { + {"A1", new Piece{WhichPiece = WhichPiece.Lance}}, + {"B1", new Piece{WhichPiece = WhichPiece.Knight}}, + {"C1", new Piece{WhichPiece = WhichPiece.SilverGeneral}}, + {"D1", new Piece{WhichPiece = WhichPiece.GoldGeneral}}, + {"E1", new Piece{WhichPiece = WhichPiece.King}}, + {"F1", new Piece{WhichPiece = WhichPiece.GoldGeneral}}, + {"G1", new Piece{WhichPiece = WhichPiece.SilverGeneral}}, + {"H1", new Piece{WhichPiece = WhichPiece.Knight}}, + {"I1", new Piece{WhichPiece = WhichPiece.Lance}}, + + {"A2", null}, + {"B2", new Piece{WhichPiece = WhichPiece.Bishop}}, + {"C2", null}, + {"D2", null}, + {"E2", null}, + {"F2", null}, + {"G2", null}, + {"H2", new Piece{WhichPiece = WhichPiece.Rook}}, + {"I2", null}, + + {"A3", new Piece{WhichPiece = WhichPiece.Pawn}}, + {"B3", new Piece{WhichPiece = WhichPiece.Pawn}}, + {"C3", new Piece{WhichPiece = WhichPiece.Pawn}}, + {"D3", new Piece{WhichPiece = WhichPiece.Pawn}}, + {"E3", new Piece{WhichPiece = WhichPiece.Pawn}}, + {"F3", new Piece{WhichPiece = WhichPiece.Pawn}}, + {"G3", new Piece{WhichPiece = WhichPiece.Pawn}}, + {"H3", new Piece{WhichPiece = WhichPiece.Pawn}}, + {"I3", new Piece{WhichPiece = WhichPiece.Pawn}}, + + {"A4", null}, + {"B4", null}, + {"C4", null}, + {"D4", null}, + {"E4", null}, + {"F4", null}, + {"G4", null}, + {"H4", null}, + {"I4", null}, + + {"A5", null}, + {"B5", null}, + {"C5", null}, + {"D5", null}, + {"E5", null}, + {"F5", null}, + {"G5", null}, + {"H5", null}, + {"I5", null}, + + {"A6", null}, + {"B6", null}, + {"C6", null}, + {"D6", null}, + {"E6", null}, + {"F6", null}, + {"G6", null}, + {"H6", null}, + {"I6", null}, + + {"A7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + {"B7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + {"C7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + {"D7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + {"E7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + {"F7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + {"G7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + {"H7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + {"I7", new Piece{WhichPiece = WhichPiece.Pawn, Owner = WhichPlayer.Player2}}, + + {"A8", null}, + {"B8", new Piece{WhichPiece = WhichPiece.Rook, Owner = WhichPlayer.Player2}}, + {"C8", null}, + {"D8", null}, + {"E8", null}, + {"F8", null}, + {"G8", null}, + {"H8", new Piece{WhichPiece = WhichPiece.Bishop, Owner = WhichPlayer.Player2}}, + {"I8", null}, + + {"A9", new Piece{WhichPiece = WhichPiece.Lance, Owner = WhichPlayer.Player2}}, + {"B9", new Piece{WhichPiece = WhichPiece.Knight, Owner = WhichPlayer.Player2}}, + {"C9", new Piece{WhichPiece = WhichPiece.SilverGeneral, Owner = WhichPlayer.Player2}}, + {"D9", new Piece{WhichPiece = WhichPiece.GoldGeneral, Owner = WhichPlayer.Player2}}, + {"E9", new Piece{WhichPiece = WhichPiece.King, Owner = WhichPlayer.Player2}}, + {"F9", new Piece{WhichPiece = WhichPiece.GoldGeneral, Owner = WhichPlayer.Player2}}, + {"G9", new Piece{WhichPiece = WhichPiece.SilverGeneral, Owner = WhichPlayer.Player2}}, + {"H9", new Piece{WhichPiece = WhichPiece.Knight, Owner = WhichPlayer.Player2}}, + {"I9", new Piece{WhichPiece = WhichPiece.Lance, Owner = WhichPlayer.Player2}}, + } + } + }; + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/BoardSetupVisualAid.razor.css b/Shogi.UI/Pages/Home/VisualAids/BoardSetupVisualAid.razor.css new file mode 100644 index 0000000..ca53811 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/BoardSetupVisualAid.razor.css @@ -0,0 +1,5 @@ +.BoardSetupVisualAid { + max-width: 80vmin; + width: 30rem; + display: grid; +} diff --git a/Shogi.UI/Pages/Home/VisualAids/DragonMoves.razor b/Shogi.UI/Pages/Home/VisualAids/DragonMoves.razor new file mode 100644 index 0000000..41330c1 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/DragonMoves.razor @@ -0,0 +1,315 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/GoldGeneralMoves.razor b/Shogi.UI/Pages/Home/VisualAids/GoldGeneralMoves.razor new file mode 100644 index 0000000..5b119a6 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/GoldGeneralMoves.razor @@ -0,0 +1,331 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/HorseMoves.razor b/Shogi.UI/Pages/Home/VisualAids/HorseMoves.razor new file mode 100644 index 0000000..10f8992 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/HorseMoves.razor @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/KingMoves.razor b/Shogi.UI/Pages/Home/VisualAids/KingMoves.razor new file mode 100644 index 0000000..c41dd01 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/KingMoves.razor @@ -0,0 +1,363 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/KnightMoves.razor b/Shogi.UI/Pages/Home/VisualAids/KnightMoves.razor new file mode 100644 index 0000000..f4862c3 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/KnightMoves.razor @@ -0,0 +1,317 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/LanceMoves.razor b/Shogi.UI/Pages/Home/VisualAids/LanceMoves.razor new file mode 100644 index 0000000..4310c50 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/LanceMoves.razor @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PawnMoves.razor b/Shogi.UI/Pages/Home/VisualAids/PawnMoves.razor new file mode 100644 index 0000000..e40d9e1 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PawnMoves.razor @@ -0,0 +1,346 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PieceMovesVisualAid.razor b/Shogi.UI/Pages/Home/VisualAids/PieceMovesVisualAid.razor new file mode 100644 index 0000000..6256045 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PieceMovesVisualAid.razor @@ -0,0 +1,51 @@ + +
+
+
Bishop
+ +
+ +
+
Rook
+ +
+
+ +
+
+
Pawn
+ +
+ +
+
Lance
+ +
+ +
+
Knight
+ +
+
+ +
+
+
Silver General
+ +
+ +
+
Gold General
+ +
+ +
+
King
+ +
+
+ + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PieceMovesVisualAid.razor.css b/Shogi.UI/Pages/Home/VisualAids/PieceMovesVisualAid.razor.css new file mode 100644 index 0000000..0121672 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PieceMovesVisualAid.razor.css @@ -0,0 +1,14 @@ +section { + display: flex; + flex-wrap: wrap; + gap: 1rem; +} + +section:not(:last-of-type){ + margin-bottom: 2rem; +} + +.moves { + width: 12rem; + text-align: center; +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PromotedKnightMoves.razor b/Shogi.UI/Pages/Home/VisualAids/PromotedKnightMoves.razor new file mode 100644 index 0000000..77eff2e --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PromotedKnightMoves.razor @@ -0,0 +1,350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PromotedLanceMoves.razor b/Shogi.UI/Pages/Home/VisualAids/PromotedLanceMoves.razor new file mode 100644 index 0000000..c0b0191 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PromotedLanceMoves.razor @@ -0,0 +1,351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PromotedPawnMoves.razor b/Shogi.UI/Pages/Home/VisualAids/PromotedPawnMoves.razor new file mode 100644 index 0000000..608d175 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PromotedPawnMoves.razor @@ -0,0 +1,358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PromotedPieceVisualAid.razor b/Shogi.UI/Pages/Home/VisualAids/PromotedPieceVisualAid.razor new file mode 100644 index 0000000..7fc0731 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PromotedPieceVisualAid.razor @@ -0,0 +1,40 @@ + +
+
+
Promoted Bishop - Horse
+ +
+ +
+
Promoted Rook - Dragon
+ +
+
+ +
+
+
Promoted Pawn
+ +
+ +
+
Promoted Lance
+ +
+ +
+
Promoted Knight
+ +
+
+ +
+
+
Promoted Silver General
+ +
+
+ +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PromotedPieceVisualAid.razor.css b/Shogi.UI/Pages/Home/VisualAids/PromotedPieceVisualAid.razor.css new file mode 100644 index 0000000..0121672 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PromotedPieceVisualAid.razor.css @@ -0,0 +1,14 @@ +section { + display: flex; + flex-wrap: wrap; + gap: 1rem; +} + +section:not(:last-of-type){ + margin-bottom: 2rem; +} + +.moves { + width: 12rem; + text-align: center; +} diff --git a/Shogi.UI/Pages/Home/VisualAids/PromotedSilverMoves.razor b/Shogi.UI/Pages/Home/VisualAids/PromotedSilverMoves.razor new file mode 100644 index 0000000..7dab000 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/PromotedSilverMoves.razor @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/RookMoves.razor b/Shogi.UI/Pages/Home/VisualAids/RookMoves.razor new file mode 100644 index 0000000..083db1f --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/RookMoves.razor @@ -0,0 +1,257 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/VisualAids/SilverMoves.razor b/Shogi.UI/Pages/Home/VisualAids/SilverMoves.razor new file mode 100644 index 0000000..372f4b3 --- /dev/null +++ b/Shogi.UI/Pages/Home/VisualAids/SilverMoves.razor @@ -0,0 +1,278 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@code { + +} diff --git a/Shogi.UI/Pages/Home/_Imports.razor b/Shogi.UI/Pages/Home/_Imports.razor new file mode 100644 index 0000000..0a497b0 --- /dev/null +++ b/Shogi.UI/Pages/Home/_Imports.razor @@ -0,0 +1 @@ +@using Shogi.UI.Pages.Home.VisualAids \ No newline at end of file diff --git a/Shogi.UI/Pages/HomePage.razor b/Shogi.UI/Pages/HomePage.razor deleted file mode 100644 index 86c8c70..0000000 --- a/Shogi.UI/Pages/HomePage.razor +++ /dev/null @@ -1,26 +0,0 @@ -@page "/" - -@using Shogi.Contracts.Types -@using System.Net.WebSockets -@using System.Text - -
-

How to play goes here

-

Maybe a cool animation of a game being played.

-
- -@code { - - private string activeSessionName = string.Empty; - - private Task OnLoginChanged() - { - StateHasChanged(); - return Task.CompletedTask; - } - private void OnChangeSession(SessionMetadata s) - { - activeSessionName = s.SessionId.ToString(); - StateHasChanged(); - } -} diff --git a/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor b/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor index df74503..47444cf 100644 --- a/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor +++ b/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor @@ -66,7 +66,7 @@ - @if (Session != null) + @if (Session != null && UseSideboard == true) {