Question: Remember that this project cannot be submitted late. Write a class named ChessVar for playing an abstract board game that is a variant of chess.
Remember that this project cannot be submitted late.
Write a class named ChessVar for playing an abstract board game that is a variant of chess. The following explanation of the rules assumes some familiarity with the rules of chess specifically how the pieces move and capture. If you have any questions about those rules, please don't hesitate to ask.
The starting position for the game is the normal starting position for standard chess.
You will need to keep track of which player's turn it is As in standard chess, white moves first. The winner is the first player to capture all of an opponent's pieces of one type, for example capturing all of the opponent's knights of which there are two would win the game, or all of the opponent's pawns of which there are eight or all of the opponent's kings of which there is only one etc. The king isn't a special piece in this game there is no check or checkmate. Pieces move and capture the same as in standard chess, except that there is no castling, en passant, or pawn promotion. As in standard chess, each pawn should be able to move two spaces forward on its first move but not on subsequent moves
Locations on the board will be specified using "algebraic notation", with columns labeled ah and rows labeled as shown in this diagram:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
