Chess-Game-Java-Swing

Chess Game is a Java application that allows users to play the classic game of chess. It provides a graphical interface for playing the game and follows the standard rules of chess. Java Swing

Stars
6

Chess Game

Chess Game is a Java application that allows users to play the classic game of chess. It provides a graphical interface for playing the game and follows the standard rules of chess.

Table of Contents

Introduction

Chess is a two-player strategy board game played on a checkered gameboard, with each player controlling an army of pieces. The objective is to checkmate the opponent's king, where the king is under attack and cannot escape capture.

This project implements a graphical version of chess using Java, allowing players to make moves and enjoy the game interactively.

Features

  • Graphical user interface for playing chess.
  • Standard chess rules implemented, including piece movements and captures.
  • Interactive gameplay with mouse-based moves.

Requirements

  • JDK 20 or later: Ensure you have JDK 20 or a newer version installed.
  • Java Swing Library: Utilizes Java's Swing library for GUI components.

Getting Started

  1. Clone the Repository:

    git clone https://github.com/your-username/chess-game.git
    cd chess-game
    
    

Compile and Run the Game:

javac ChessGame.java
java ChessGame

Usage

  • Launch the application and start a new game.
  • Use the mouse to select and move chess pieces according to the game rules.

Contributing

We welcome contributions from the community! If you'd like to contribute to this project, please follow our Contribution Guidelines.

License

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