A fully functional browser-based Chess game built using HTML, CSS, and JavaScript (94% Vanilla JS). This project allows two players to play a standard chess match directly in the browser without any third-party libraries.
- β Standard 8x8 Chessboard
- β All chess pieces with standard movements
- βοΈ Basic rule enforcement (e.g., legal moves, check/checkmate)
- π Move validation and turn-based logic
- β¨ Interactive UI with responsive design
- π§ Pure Vanilla JavaScript implementation (No frameworks/libraries)
- HTML5 β Structure and layout
- CSS3 β Styling and animations
- JavaScript (Vanilla) β Game logic, move handling, event listeners
π chess-game/
βββ index.html # Main HTML file
βββ style.css # Styling and layout
βββ script.js # Core game logic
βββ assets/ # Optional folder for piece icons or images- Initializes an 8x8 board and populates pieces in standard layout.
- Each move is validated based on the piece's logic.
- Handles turn switching, captures, and basic win conditions.
- UI updates dynamically to reflect moves and board state.
-
Clone the repository:
git clone https://github.com/your-username/chess-game.git
-
Open
index.htmlin your browser.
No installation or server required β pure front-end!