Skip to content

HiranmoyChowdhury/PlayChess

Repository files navigation

Play Chess

Play Chess is an offline mobile game developed using Java and Android Studio, allowing two players to enjoy the classic game of chess.

Table of Contents

Installation

To install and run the Play Chess game on your Android device, follow these steps:

Step1: Clone the repository:

   $ git clone https://github.com/RanChyD/PlayChess.git

Step2: Open the project in Android Studio.

Step3: Build and run the project on your Android device or emulator.

Features

Offline Gameplay: Play Chess allows two players to compete against each other offline, making it convenient for players without an internet connection.

Object-Oriented Design: The project follows an object-oriented design approach, utilizing interfaces, dynamic method dispatch, and wrapper classes to enhance readability and maintainability for future updates.

Comprehensive Move Options: Every possible move in chess is implemented in the game. After selecting a chess piece to move, the game displays all legal moves available for that piece, enabling players to make strategic decisions.

If we make a tap on the black queen, we can see where it can play. blackQueenCanMove

Here the white bishop is attacking the black king. If we tap the Black Queen now, we will see the only legal action.

legalMoveForBlackQueen

Check and Checkmate Detection: The game calculates whether a move puts the opponent's king in check. It also checks for checkmate, ensuring that the game adheres to the rules of chess and provides a challenging experience.

Draw Detection: Play Chess includes a draw detection mechanism to identify situations where a draw is inevitable due to stalemate or insufficient material.

Usage

1.Launch the Play Chess application on your Android device.

2.Enter the names of the players, so that the application tells you the name of the current player.

3.The first player selects a chess piece by tapping on it. The game highlights all legal moves for that piece.

4.The first player chooses the best move based on the available legal moves and taps on the desired destination square.

5.The game switches to the second player, who repeats steps 3 and 4.

6.Players take turns until there is a winner (checkmate) or a draw.

7.Enjoy the game and have fun!

Contributing

Thank you for considering contributing to the Play Chess project! If you have any suggestions, bug reports, or feature requests, please follow these guidelines:

1.Fork the repository.

2.Create a new branch with a descriptive name.

3.Implement your changes or improvements.

4.Test your changes thoroughly.

5.Commit your changes with clear and concise commit messages.

6.Push your changes to your forked repository.

7.Submit a pull request, explaining the purpose and benefits of your changes.

White Walker is coming soon (Chess Bot)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages