Рет қаралды 1,068
This video, part 9 of the JavaScript Chess Series, focuses on enabling players to playchess against the Stockfish engine directly at various levels based on the engine’s depth.Watch as a JavaScript chess game is modified to allow players to challenge the Stockfish engine. This isn’t about viewing the engine’s analysis but about stepping into the game yourself. The video also showcases the implementation of chess board flipping, allowing players to play both white and black. Don’t forget to like,comment, and subscribe for more chess programming content!
Code:tinyurl.com/javascript-chess-...
Chess Pieces PNG Files:
White Pawn:By en:User:Cburnett - File:Chess plt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
Black Pawn:By en:User:Cburnett - File:Chess pdt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
White Knight:By en:User:Cburnett - File:Chess nlt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
Black Knight:By en:User:Cburnett - File:Chess ndt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
White Bishop:By en:User:Cburnett - File:Chess blt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
Black Bishop:By en:User:Cburnett - File:Chess bdt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
White Rook: By en:User:Cburnett - File:Chess rlt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
Black Rook: By en:User:Cburnett - File:Chess rdt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
White Queen:By en:User:Cburnett - File:Chess qlt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
Black Queen:By en:User:Cburnett - File:Chess qdt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
White King:By en:User:Cburnett - File:Chess klt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
Black King:By en:User:Cburnett - File:Chess kdt45.svg, CC BY-SA 3.0, commons.wikimedia.org/w/index...
0:00 Introdunction to Chess Game Using Html CSS And JavaScript - Part 9
2:43 Adding new controls to the game.
3:51 Applying style to new elements
5:26 Implementing flip of the board and resetting the game.
8:03 Creating a function to execute a move by obtaining the initial and final squares.
10:53 Retrieving the optimal move from the engine.