Skip to content

Its the chess game in c++. The main chess game is in cpp file and Other is header file.

Notifications You must be signed in to change notification settings

shahbaz9221/ChessGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Chess Game in C++

Welcome to a simple command-line chess game implemented in C++. This two-player chess game allows players to enjoy the classic game of chess right on their terminal.

Features

  • Two-player chess game.
  • Basic move validation and check detection.
  • Castling and promotion functionality.
  • Replay feature to watch the game again.

Table of Contents

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have a C++ compiler installed on your machine.
  • You have a basic understanding of how to run C++ programs.

How to Play

  1. Clone or Download: Start by cloning this repository to your local machine or download it as a ZIP archive.

  2. Compile the Source Code: Use your C++ compiler to compile the source code. For example, you can use g++:

    g++ chess_game.cpp -o chess_game
  3. Run the Game: Execute the compiled program:

    ./chess_game
  4. Game Instructions: The game provides instructions within the console. Follow the on-screen prompts to make moves using source and target coordinates (e.g., 1 0 2 2). You can also input 111 for castling moves.

  5. Take Turns: Players take turns making their moves. The game continues until one player wins, it ends in a stalemate, or the players choose to quit.

  6. Replay Feature: After the game ends, you can choose to watch a replay of the game to relive the action.

Contributing

If you'd like to contribute to this project, we welcome your contributions! Please follow these guidelines:

  1. Fork the Project: Fork the project on GitHub.

  2. Create a New Branch: Create a new branch on your forked repository.

  3. Commit Your Changes: Make your changes and commit them with descriptive messages.

  4. Push Your Branch: Push your branch to your fork on GitHub.

  5. Submit a Pull Request: Create a pull request on the main repository.

License

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

Acknowledgments

  • Special thanks to [Your Name] for inspiration and guidance.

Support and Contact

If you have questions, feedback, or encounter issues with the game, feel free to reach out to the project maintainers or create a GitHub issue.

Have fun playing the game! Good luck and may the best player win!

About

Its the chess game in c++. The main chess game is in cpp file and Other is header file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages