Coder Social home page Coder Social logo

chess's Introduction

Terminal Chess Game

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.

Features

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

How to Play

  1. Clone this repository to your local machine:

    git clone https://github.com/onkar69483/Chess.git
  2. Compile the code using a C++ compiler:

    g++ main.cpp -o chessgamev2
  3. Run the game:

    ./chessgamev2
  4. Follow the on-screen instructions to make moves. Use standard algebraic notation (e.g., "e2 to e4") to move pieces.

  5. Play the game until one player achieves checkmate or decides to quit.

Dependencies

  • C++ Compiler (e.g., g++)
  • Windows: Command Prompt or Linux/macOS: Terminal

Usage

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

Contributing

Contributions are welcome! If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature: git checkout -b feature-name.
  3. Make your changes and commit them: git commit -m "Add feature".
  4. Push to the branch: git push origin feature-name.
  5. Submit a pull request.

Acknowledgments

  • Thanks to [Your Name] for their contributions and feedback.

Contact

If you have any questions or suggestions, please feel free to contact [Onkar Mendhapurkar] at [[email protected]].

Enjoy the game!

chess's People

Contributors

onkar69483 avatar sachincode4141 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.