Skip to main content

Code a Chess Game with Stockfish API – JavaScript Tutorial


Curriculum for the course Code a Chess Game with Stockfish API – JavaScript Tutorial

Learn how to code a chess game that can be played against another person or a computer, using the Stockfish APT. The tutorial uses JavaScript and Angular, but you can follow along if you don't know Angular. 💻 Code: https://github.com/awsomeCStutorials/chess-game Stockfish API: https://stockfish.online/ ✏️ Course created by @RobertsTech139 You can email Roberts if you have questions: roberts.tech.info@gmail.com ⭐️ Contents ⭐️ ⌨️ (0:00:00) Introduction ⌨️ (0:02:09) Object-oriented model for a chess app ⌨️ (0:03:55) Create a new Angular project ⌨️ (0:04:07) Abstract Piece class ⌨️ (0:07:07) Bishop class ⌨️ (0:08:22) Knight class ⌨️ (0:09:54) Queen class ⌨️ (0:11:25) Rook class ⌨️ (0:13:14) King class ⌨️ (0:14:37) Pawn class ⌨️ (0:17:06) Chessboard class basic props ⌨️ (0:20:36) Generate chess-board component ⌨️ (0:20:57) working on displaying the chessboard in the browser ⌨️ (0:27:58) Showing a final view of a chess board with pieces ⌨️ (0:28:12) Discussing how we can implement methods ⌨️ (0:32:13) Implementing method to check if the player is in check ⌨️ (0:37:08) Implement a method to see if the position is safe after the move ⌨️ (0:39:17) Implement a method to find all possible safe squares ⌨️ (0:46:39) Method that marks selected piece and piece's safe squares ⌨️ (0:52:16) Method that prevents selecting pieces of a player who is not playing ⌨️ (0:53:22) Implement a method that is responsible for moving pieces ⌨️ (0:56:22) Implement placingPiece method ⌨️ (1:00:03) Declare properties and methods that signalize if the king is in check ⌨️ (1:07:46) Implementing Castling move ⌨️ (1:14:48) implementing EnPassant move ⌨️ (1:21:03) implementing Pawn promotion ⌨️ (1:34:14) Implement a method that checks if a checkmate or stalemate is happening ⌨️ (1:36:32) Implement a method that checks if the game is overdue 50-move rule ⌨️ (1:37:58) Insufficient material poistions ⌨️ (1:41:48) Show game over the message in the application ⌨️ (1:43:31) Demonstrating that checkmate, stalemate, and insufficient material position detection are working ⌨️ (1:44:25) FEN Converter class ⌨️ (1:56:41) Implement a method that detects if the same position occurred 3 times (Threefold repetition rule) ⌨️ (2:01:19) Method that flips the board ⌨️ (2:03:00) Generate computer mode component, stockfish service ⌨️ (2:04:08) Quick explanation of stockfish rest API that we are going to use to get moves from the computer ⌨️ (2:05:42) Implement a method that retrieves the best move from the Stockfish engine ⌨️ (2:13:27) Install angular material ⌨️ (2:14:05) Working on nav menu component ⌨️ (2:18:40) Working on computer mode component ⌨️ (2:22:43) Working on a dialog component ⌨️ (2:37:10) Changes to make our application compatible with the new version of Stockfish API ⌨️ (2:38:01) showing play against computer dialog cmp ⌨️ (2:37:12) Working on a component that shows us the list of previous moves in the game ⌨️ (2:58:25) Implement a method that stores move in short algebraic notation ⌨️ (3:07:07) Implement a method to emit sound after each move type ⌨️ (3:12:22) Implement a method to navigate between moves in the move list component using the left and right arrow 🎉 Thanks to our Champion and Sponsor supporters: 👾 davthecoder 👾 jedi-or-sith 👾 南宮千影 👾 Agustín Kussrow 👾 Nattira Maneerat 👾 Heather Wcislo 👾 Serhiy Kalinets 👾 Justin Hual 👾 Otis Morgan 👾 Oscar Rahnama -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news

Watch Online Full Course: Code a Chess Game with Stockfish API – JavaScript Tutorial


Click Here to watch on Youtube: Code a Chess Game with Stockfish API – JavaScript Tutorial


This video is first published on youtube via freecodecamp. If Video does not appear here, you can watch this on Youtube always.


Udemy Code a Chess Game with Stockfish API – JavaScript Tutorial courses free download, Plurasight Code a Chess Game with Stockfish API – JavaScript Tutorial courses free download, Linda Code a Chess Game with Stockfish API – JavaScript Tutorial courses free download, Coursera Code a Chess Game with Stockfish API – JavaScript Tutorial course download free, Brad Hussey udemy course free, free programming full course download, full course with project files, Download full project free, College major project download, CS major project idea, EC major project idea, clone projects download free

What's Hot

CVR Nummer : Register CVR Number for Denmark Generate and Test Online

CVR Nummer : Register CVR Number for Denmark Generate and Test Online | Image credit: Pexel What Is Danish CVR The Central Business Register (CVR) is the central register of the state with information on all Danish companies. Since 1999, the Central Business Register has been the authoritative register for current and historical basic data on all registered companies in Denmark. Data comes from the companies' own registrations on Virk Report. There is also information on associations and public authorities in the CVR. As of 2018, CVR also contains information on Greenlandic companies, associations and authorities. In CVR at Virk you can do single lookups, filtered searches, create extracts and subscriptions, and retrieve a wide range of company documents and transcripts. Generate Danish CVR For Test (Fake) Click the button below to generate the valid CVR number for Denmark. You can click multiple times to generate several numbers. These numbers can be used to Test your ...

Bing Homepage Quiz: Fun, Win Rewards, and Brain Teasers

Bing, Microsoft's search engine, has taken interactive engagement to the next level with its captivating feature - the Bing Homepage Quiz. This intriguing daily quiz not only challenges your knowledge but also offers a chance to earn rewards. In this comprehensive guide, we will explore the ins and outs of the Bing Homepage Quiz, including how to play, the different types of quizzes, and how you can earn and use rewards through this engaging feature. Bing homepage Quiz | Image credit: LanguageLassi How to Play the Bing Homepage Quiz Playing the Bing Homepage Quiz is simple and enjoyable. Here's how you can get started: Visit Bing : Open your preferred web browser and navigate to the Bing homepage (bing.com). Look for the Quiz : On the Bing homepage, keep an eye out for the interactive quiz card. This card is usually located near the bottom of the page and features a captivating image related to the quiz. Click to Start : Click on the quiz card to begin the quiz. It...

How To Iterate Dictionary Object

Dictionary is a object that can store values in Key-Value pair. its just like a list, the only difference is: List can be iterate using index(0-n) but not the Dictionary . Generally when we try to iterate the dictionary we get below error: " Collection was modified; enumeration operation may not execute. " So How to parse a dictionary and modify its values?? To iterate dictionary we must loop through it's keys or key - value pair. Using keys