Project: Lines of Action
Requirement
Requirements:
Two files will be submitted: cpp AND gameplay.cpp ;
Do not need to submit h
Insert your name, student ID, and e-mail address as comments at the beginning of your source files;
Include suitable comments as documentation;
Free of compilation errors and warnings;
NO global variables allowed;
Two submitted files will be graded separately, so you should not mix the functionalities of the two files
Game Description
Start condition:
There are 2 players (player Black and player White) and an empty square game board of fixed size (8*8).
Game stage:
Two players take turns (Black starts first) to move their pieces horizontally ↔, vertically ↕, or diagonally ⤡⤢ following the rules:
The piece moves exactly as many squares as there are pieces on the line in which it is moving.(e.g., a2 in (a) can move exactly 2 squares horizontally or diagonally.)
Game Description
Start condition:
There are 2 players (player Black and player White) and an empty square game board of fixed size (8*8).
Game stage:
Two players take turns (Black starts first) to move their pieces horizontally ↔, vertically ↕, or diagonally ⤡⤢ following the rules:
Checkers(i.e., pieces) can jump over other checkers of the same player, but not over the opponent's checkers. (b)
Game Description
Start condition:
There are 2 players (player Black and player White) and an empty square game board of fixed size (8*8).
Game stage:
Two players take turns (Black starts first) to move their pieces horizontally ↔, vertically ↕, or diagonally ⤡⤢ following the rules:
Checkers can land on an unoccupied square or a square occupied by an opponent's checker. In the latter case the opponent's checker is captured and is removed from the board (c).
Game Description
End of the game:
Win: After a move, current player makes all his/her pieces adjacent to each other vertically, horizontally, and diagonally => The player wins
Suicide: After a move, all his/her opponent’s pieces are adjacent to each other vertically, horizontally, and diagonally (because of Capture)
=> The opponent wins
Draw game: When a move makes both players’ pieces adjacent to each other vertically, horizontally, and diagonally => Draw game
White wins
Opponent(white) wins
A class called LinesOfAction to model the chess game (implemented by h(provided) and LinesOfAction.cpp)
A cpp file as client program of class LinesOfAction which performs the game flow.
Tips: You are recommended to finish the LinesOfAction class first
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of