In this sixth part of the series we are going to create the referee. Here we put all the logic and the rules for chess. The code in this video can be found on this GitHub repository: Timestamps: 0:00 Introduction 0:50 Creating the referee 3:30 Adding parameters 4:16 Creating PieceType Enum 6:20 Adding PieceType to Piece interface 9:59 Creating TeamType Enum 12:48 Creating pawn logic 15:35 Prevent illegal moves 17:07 CSS for illegal moves
Hide player controls
Hide resume playing