An open API service indexing awesome lists of open source software.

https://github.com/ajay-dhangar/chess-game


https://github.com/ajay-dhangar/chess-game

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# Chess Game

Welcome to the **Chess Game** project! This project provides a simple chess game interface where players can move pieces using arrow keys and the Enter key. The chess board is styled using HTML and CSS, and the logic for interaction is managed through JavaScript.

---

## Table of Contents
- [Chess Game](#chess-game)
- [Table of Contents](#table-of-contents)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [How to Run](#how-to-run)
- [Features](#features)
- [Project Structure](#project-structure)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

---

## Getting Started

### Prerequisites
Ensure you have the following installed:
- A modern web browser (e.g., Chrome, Firefox, Edge).

### How to Run
1. Clone the repository:
```bash
git clone https://github.com/ajay-dhangar/chess-game.git
```
2. Navigate to the project directory:
```bash
cd chess-game
```
3. Open the `index.html` file in your browser to start the game.

---

## Features
- **Playable Chess Board**: A fully styled chess board with initial piece positions.
- **Keyboard Controls**: Navigate and interact with pieces using arrow keys and the Enter key.
- **Player Turn Display**: Shows the current player's turn dynamically.

---

## Project Structure
```plaintext
chess-game/
├── board.css # Styles for the chess board and pieces
├── index.html # Main HTML file
├── script.js # JavaScript for game logic
└── README.md # Project documentation
```

---

## Usage
1. Open the game in your browser.
2. Use the **arrow keys** to navigate through the board.
3. Press **Enter** to select or move a piece.
4. The current player's turn is displayed at the top of the screen.

---

## Contributing
Contributions are welcome! Follow these steps to contribute:
1. Fork the repository.
2. Create a new branch for your feature or bug fix:
```bash
git checkout -b feature-name
```
3. Commit your changes with a descriptive message:
```bash
git commit -m "Add feature XYZ"
```
4. Push your changes:
```bash
git push origin feature-name
```
5. Open a Pull Request explaining your changes.

---

## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.