Coding a Chess Game with Stockfish API - JavaScript Tutorial

Coding a Chess Game with Stockfish API - JavaScript Tutorial

freeCodeCamp.org via freeCodeCamp Direct link

⌨️ Demonstrating that checkmate, stalemate, and insufficient material position detection are working

31 of 47

31 of 47

⌨️ Demonstrating that checkmate, stalemate, and insufficient material position detection are working

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Coding a Chess Game with Stockfish API - JavaScript Tutorial

Automatically move to the next video in the Classroom when playback concludes

  1. 1 ⌨️ Introduction
  2. 2 ⌨️ Object-oriented model for a chess app
  3. 3 ⌨️ Create a new Angular project
  4. 4 ⌨️ Abstract Piece class
  5. 5 ⌨️ Bishop class
  6. 6 ⌨️ Knight class
  7. 7 ⌨️ Queen class
  8. 8 ⌨️ Rook class
  9. 9 ⌨️ King class
  10. 10 ⌨️ Pawn class
  11. 11 ⌨️ Chessboard class basic props
  12. 12 ⌨️ Generate chess-board component
  13. 13 ⌨️ working on displaying the chessboard in the browser
  14. 14 ⌨️ Showing a final view of a chess board with pieces
  15. 15 ⌨️ Discussing how we can implement methods
  16. 16 ⌨️ Implementing method to check if the player is in check
  17. 17 ⌨️ Implement a method to see if the position is safe after the move
  18. 18 ⌨️ Implement a method to find all possible safe squares
  19. 19 ⌨️ Method that marks selected piece and piece's safe squares
  20. 20 ⌨️ Method that prevents selecting pieces of a player who is not playing
  21. 21 ⌨️ Implement a method that is responsible for moving pieces
  22. 22 ⌨️ Implement placingPiece method
  23. 23 ⌨️ Declare properties and methods that signalize if the king is in check
  24. 24 ⌨️ Implementing Castling move
  25. 25 ⌨️ implementing EnPassant move
  26. 26 ⌨️ implementing Pawn promotion
  27. 27 ⌨️ Implement a method that checks if a checkmate or stalemate is happening
  28. 28 ⌨️ Implement a method that checks if the game is overdue 50-move rule
  29. 29 ⌨️ Insufficient material poistions
  30. 30 ⌨️ Show game over the message in the application
  31. 31 ⌨️ Demonstrating that checkmate, stalemate, and insufficient material position detection are working
  32. 32 ⌨️ FEN Converter class
  33. 33 ⌨️ Implement a method that detects if the same position occurred 3 times Threefold repetition rule
  34. 34 ⌨️ Method that flips the board
  35. 35 ⌨️ Generate computer mode component, stockfish service
  36. 36 ⌨️ Quick explanation of stockfish rest API that we are going to use to get moves from the computer
  37. 37 ⌨️ Implement a method that retrieves the best move from the Stockfish engine
  38. 38 ⌨️ Install angular material
  39. 39 ⌨️ Working on nav menu component
  40. 40 ⌨️ Working on computer mode component
  41. 41 ⌨️ Working on a dialog component
  42. 42 ⌨️ Changes to make our application compatible with the new version of Stockfish API
  43. 43 ⌨️ showing play against computer dialog cmp
  44. 44 ⌨️ Working on a component that shows us the list of previous moves in the game
  45. 45 ⌨️ Implement a method that stores move in short algebraic notation
  46. 46 ⌨️ Implement a method to emit sound after each move type
  47. 47 ⌨️ Implement a method to navigate between moves in the move list component using the left and right arrow

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.