Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This is a simple web-based chess game developed using HTML, CSS, JavaScript, and TypeScript. The game does not use OOP

License

Notifications You must be signed in to change notification settings

Lokrip/game-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Game

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.

Tech Stack

  • 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.

Features

  • 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.

Project Structure

  1. index.html — the main file for displaying the chessboard.
  2. style.css — the file with the main styling for the page and board.
  3. src — folder with game logic written in TypeScript.

How to Run the Project

  1. Clone the repository to your computer:

    git clone https://github.com/your-username/chess-game.git
  2. Open the project in your favorite code editor.

  3. Open the index.html file in a browser to start the game.

Notes

  • 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

License

This project is licensed under the MIT License — see the LICENSE file for details.

About

This is a simple web-based chess game developed using HTML, CSS, JavaScript, and TypeScript. The game does not use OOP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published