This is a simple web-based chess game developed using HTML, CSS, JavaScript, and TypeScript. The game does not use OOP, and the game logic is structured through functions to perform the main actions and game mechanics.
- HTML — for the structure of the page and displaying the game board.
- CSS — for styling and the visual appearance of the game interface.
- JavaScript — for implementing game logic and user interactions.
- TypeScript — for enhanced type safety and better code readability.
- A two-dimensional 8x8 game board with chess pieces.
- The ability to move pieces according to chess rules.
- Highlighting possible moves for the selected piece.
- Visual indication of the current player.
- Chess rules such as castling, en passant capture, etc.
- Checking for check and checkmate.
- index.html — the main file for displaying the chessboard.
- style.css — the file with the main styling for the page and board.
- src — folder with game logic written in TypeScript.
-
Clone the repository to your computer:
git clone https://github.com/your-username/chess-game.git
-
Open the project in your favorite code editor.
-
Open the
index.htmlfile in a browser to start the game.
- The game does not use OOP. All functions and game logic are implemented using a functional approach.
- TypeScript requires compilation into JavaScript. To compile, use the following command:
npm install npm run start
This project is licensed under the MIT License — see the LICENSE file for details.