CLI Chess Game is a command-line interface based chess game written in Java. It allows two players to play a game of chess on a terminal.
To install CLI Chess Game, follow these steps:
- Clone the repository:
git clone https://github.com/lomokwa/chess-system.git
- Navigate into the directory:
cd chess-system/bin
- Run the following command on your terminal:
java app/Program
-
The positions of the pieces are represented by a combination of a letter and a number. The letter represents the column and the number represents the row. For example, the position
a1
represents the bottom-left corner of the board, while the positionh8
represents the top-right corner of the board. -
To make a move, the player will be prompted to enter the position of the piece they want to move and then the position they want to move the piece to.
-
The pieces are represented by the following letters:
P
for pawnR
for rookN
for knightB
for bishopQ
for queenK
for king
- The game is written in Java 17.0.8.
- Code uses Java and OOP principles such as encapsulation, inheritance, and polymorphism.
- The code is organized into packages and classes to make it more readable and maintainable.