Skip to main content

Command Palette

Search for a command to run...

Chess Design using OOPS

Published
1 min read
Chess Design using OOPS
A

Skilled Software Developer with 3+ years of experience in the full SDLC creating dynamic web applications. Updates functionality based on customer requirements to ensure excellent user experience.

The main classes will be

  1. Spot: A spot represents one block of the 8×8 grid and an optional piece.

  2. Piece: The basic building block of the system, every piece will be placed on a spot. Piece class is an abstract class. The extended classes (Pawn, King, Queen, Rook, Knight, Bishop) implements the abstracted operations.

  3. Board: Board is an 8×8 set of boxes containing all active chess pieces.

  4. Player: Player class represents one of the participants playing the game.

  5. Move: Represents a game move, containing the starting and ending spot. The Move class will also keep track of the player who made the move.

  6. Game: This class controls the flow of a game. It keeps track of all the game moves, which player has the current turn, and the final result of the game.