@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(); } }