Refactor and enhance chess game functionality

This commit adds enhancements and refactors existing logic in the chess game. The modifications convert single-player games into multiplayer, introducing logic for accepting and managing game challenges, and displaying player information. Changes include retrieving a player's color via a new API, switching to represent watch mode visually, and restructuring the challenge acceptance flow
This commit is contained in:
Anduin
2024-06-18 07:56:44 +00:00
parent 47b6fbee57
commit 24804d3e52
12 changed files with 327 additions and 142 deletions
@@ -26,19 +26,22 @@
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" asp-controller="Home" asp-action="Index">Chess</a>
<li class="nav-item">
<a class="nav-link" asp-controller="Home" asp-action="Index">Rooms</a>
</li>
<li class="nav-item">
<a class="nav-link" asp-controller="Home" asp-action="Watch">Watch</a>
</li>
</ul>
<div class="form-inline">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" title="Manage" id="player-nick-name" href="#">未登录</a>
<a class="nav-link" title="Manage" id="player-nick-name" href="#">Player name</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://gitlab.aiursoft.cn/aiursoft/chessserver">
<i class="fab fa-gitlab"></i>
View on GitLab
Source Code
</a>
</li>
</ul>