logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

this progarm 2 players (player Black and player White) and an empty square game board of fixed size (8*8).

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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

(5/5)
Attachments:

Expert's Answer

440 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

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. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

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

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

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

. 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 Sea Ports. Here are the classes and their instance variables we wish to define:

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

440 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

916 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

845 Answers

Hire Me
expert
Husnain SaeedComputer science

544 Answers

Hire Me
expert
Atharva PatilComputer science

552 Answers

Hire Me

Get Free Quote!

425 Experts Online