Add pawn promotion

This commit is contained in:
jheaps
2025-03-28 10:41:29 -06:00
parent 9f6327f5d9
commit ed35a2e86f
4 changed files with 124 additions and 5 deletions
+18
View File
@@ -26,6 +26,24 @@
</div>
</div>
<div id="promotionModal" style="display: none;">
<p>Promote your pawn to:</p>
<div id="promotionBtnContainer">
<button onclick="selectPromotion(4)">
<img src="/images/Chess Images/WhiteQueen.svg" alt="Queen" />
</button>
<button onclick="selectPromotion(1)">
<img src="/images/Chess Images/WhiteRook.svg" alt="Rook" />
</button>
<button onclick="selectPromotion(3)">
<img src="/images/Chess Images/WhiteBishop.svg" alt="Bishop" />
</button>
<button onclick="selectPromotion(2)">
<img src="/images/Chess Images/WhiteKnight.svg" alt="Knight" />
</button>
</div>
</div>
@section Scripts {
<script src="~/js/signalr/signalr.min.js"></script>
<script src="~/js/ChessScripts/chessLogic.js"></script>
+1 -1
View File
@@ -1,6 +1,6 @@
@{
Layout = null;
ViewData["cssVersion"] = "1.0.1"; // <--- change this once to bust cache
ViewData["cssVersion"] = "1.0.2"; // <--- change this once to bust cache
}
<!DOCTYPE html>