/HadesChess

A java based Chess Engine

Primary LanguageJava

HadesChess

HadesChess is a Java-based chess program that implements the Hades Chess variant. The game features a unique set of rules and strategies that add an intriguing twist to the traditional game of chess.

Rules

Hades Chess follows the rules of traditional chess with the addition of the "Hades Chess" variant:

  • The game is played on a 8x8 chessboard.
  • Each player starts with their traditional chess pieces (pawn, knight, bishop, rook, queen, king) placed in the standard positions.
  • The objective is to checkmate the opponent's king.
  • The key difference lies in the rules for the King ("A" or "a"). The King can move to any adjacent square, including diagonally. It is not restricted to the traditional one-square move.

Features

  • Play Hades Chess against the computer AI.
  • A graphical user interface (GUI) is provided for an interactive experience.
  • The computer AI uses an alpha-beta pruning algorithm with a fixed depth to make intelligent moves.

Getting Started

  1. Clone or download this repository to your local machine.
  2. Open the project in your preferred Java development environment.
  3. Compile and run the HadesChess class to start the game.

How to Play

  1. The game starts with the computer making the first move as White.
  2. You can select to play as White or Black by choosing the appropriate option in the dialog box.
  3. If you're playing as White, the computer will make its move, and you can follow the game through the GUI.
  4. Make your move by clicking on a piece and then on the destination square.
  5. The computer will respond with its move, and the game continues until checkmate or a draw occurs.