Chess Game Using Html CSS And JavaScript-Part 5

preview_player
Показать описание
Welcome to part 5 of the series on creating a chess game using JavaScript. In this video, the focus is on implementing the promotion rule. Follow along as the process of adding this exciting feature to the game is explained and demonstrated. The code will be explained, making it easy to add promotion to the chess game. With this tutorial, the game can be enhanced and provide a more engaging experience for players.

Chess Pieces PNG Files:

0:00 Welcome to creating a chess game using JavaScript
1:30 Displaying Promotion Options - Implementation
11:57 Implementing Pawn Promotion

#javascriptgame
Рекомендации по теме
Комментарии
Автор

before you call displayPromotionChoices() you have to "let captured = squareContent.pieceColor != "blank";" then you pass in captured as a parameter. captured was set to false and I was getting a bug when promoting on a capture, it wouldn't delete the captured piece. Thank you for these videos, they're fantastic

GergPerson
join shbcf.ru