Press the green flag to Generate a starting setup every 0.03 seconds This isn't playable just for Generating and causing eplipetic seizures.
https://en.wikipedia.org/wiki/Chess_piece#Moves How to move the pieces. This is not plagarsmism. (lol) In order The rook may move any number of squares vertically or horizontally without jumping. It also takes part, along with the king, in castling. The bishop may move any number of squares diagonally without jumping. Consequently, a bishop stays on squares of the same color throughout the game. The queen may move any number of squares vertically, horizontally, or diagonally without jumping. The king may move to any adjoining square. No move may be made such that the king is placed or left in check. The king may participate in castling, which is a move consisting of the king moving two squares toward a same-colored rook on the same rank and the rook moving to the square crossed by the king. Castling may only be performed if the king and rook involved are unmoved, if the king is not in check, if the king would not travel through or into check, and if there are no pieces between the rook and the king. The knight moves from one corner of any two-by-three rectangle to the opposite corner. Consequently, the knight alternates its square color each time it moves. It is not obstructed by other pieces. The pawn may move forward one square, and one or two squares when on its starting square, toward the opponent's side of the board. When there is an enemy piece one square diagonally ahead of a pawn, then the pawn may capture that piece. A pawn can perform a special type of capture of an enemy pawn called en passant ("in passing"), wherein it captures a horizontally adjacent enemy pawn that has just advanced two squares as if that pawn had only advanced one square. If the pawn reaches a square on the back rank of the opponent, it promotes to the player's choice of a queen, rook, bishop, or knight of the same color.[6] google en passant bro credit: greenchess for the knook