Chess built with vanilla JavaScript

Chess Web

Chess game built using HTML, CSS, and JavaScript.

Chess Web screenshot

Project overview

Chess with browser fundamentals

Chess Web builds an eight-by-eight board in JavaScript and uses CSS and piece images to display it. The interface has separate player panels with scores and move counts. The live demo and source are linked above.

Board state and player turns

JavaScript maintains the board array, places the starting pieces, highlights available moves, and checks attacks on the king. The player panels change appearance as turns switch. The implementation is in chessScript.js, alongside the HTML page and stylesheet.