Chess.mp4
A simple terminal-based chess game implemented in C++. This chess game allows you to play chess in the command-line interface. It includes basic chess rules and a text-based chessboard.
- Text-based chessboard representation.
- Move validation and enforcement of standard chess rules.
- Support for two players (no AI opponent).
- Simple text interface for making moves.
- Basic win condition detection (checkmate).
- Ability to restart or quit the game.
-
Clone this repository to your local machine:
git clone https://github.com/onkar69483/Chess.git
-
Compile the code using a C++ compiler:
g++ main.cpp -o chessgamev2
-
Run the game:
./chessgamev2
-
Follow the on-screen instructions to make moves. Use standard algebraic notation (e.g., "e2 to e4") to move pieces.
-
Play the game until one player achieves checkmate or decides to quit.
- C++ Compiler (e.g., g++)
- Windows: Command Prompt or Linux/macOS: Terminal
- Follow the instructions displayed in the terminal to make moves and play the game.
- Use "q" or "quit" to quit the game.
- Use "r" or "restart" to restart the game.
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
. - Make your changes and commit them:
git commit -m "Add feature"
. - Push to the branch:
git push origin feature-name
. - Submit a pull request.
If you have any questions or suggestions, please feel free to contact Onkar Mendhapurkar at [email protected].
Enjoy the game!