Building a #chess game using vanilla #JavaScript. Pieces are done, and draggable functionality has been added. Next target to implement dragging rules for each piece as per the standard.
✍ Chess\Player\LanPlayer allows to play a movetext in long algebraic notation (LAN) returning a #chess board object as described in the following example.
White's pawns are better in terms of doubled pawns, passed pawns and isolated pawns. Outpost squares have been created. Black's black bishop has been traded for White's outpost knight, and White's bishop is now on an outpost.
✍ This code snippet returns a computer generated response to the current position. ✍ It starts a classical #chess game in grandmaster mode to then play 1.e4
✍ Described next is how to start a classical #chess game in FEN mode. After a FEN string is successfully loaded the game can be continued by making moves either in PGN or in long algebraic notation.