This is a simple implementation of a chess game using JavaScript. The game allows two players to take turns making moves on a virtual chessboard.
- Players can select and move chess pieces according to the rules of chess.
- The game enforces turn-based gameplay, ensuring each player moves their pieces in sequence.
- Illegal moves are not allowed, and players are notified if they attempt to make an invalid move.
- The game checks for checkmate and stalemate conditions to determine the end of the game.
- Messages or alerts are displayed to indicate the game status, such as checkmate or stalemate.
- Clone or download the repository.
- Open the
index.html
file in a web browser. - The chessboard will be displayed on the screen.
- Click on a chess piece to select it.
- Click on a valid destination cell to move the selected piece.
- Players take turns making moves until the game ends.
- JavaScript
- HTML
- CSS
Enjoy playing Game! Play Game
Written in one hour :)