{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

SYSC_2004_Lab_8 - Carleton University Department of Systems...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Carleton University Department of Systems and Computer Engineering SYSC 2004 Fall 2009 Lab 8 - Inheritance Objective The objective of this lab is to gain more experience with inheritance and abstract classes. Getting Started 1. Download file chess.zip from the course Web site. 2. Right-click on the chess.zip folder and select Extract All... to extract all the files into a folder called chess . Background A chess board is made up of 64 squares arranged in 8 rows and 8 columns. Rows are numbered 1 to 8, top to bottom, and columns are numbered 1 to 8, left to right. Two of the pieces in chess are the bishop and the rook. A bishop moves diagonally, so the bishop shown below can move into any square covered by the thick black lines. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
A rook moves horizontally and vertically, so the rook shown below can move into any square covered by the thick black lines The chess folder contains incomplete implementations of three classes: AbstractPiece , Bishop and Rook . AbstractPiece will define the fields and methods that are common to all chess pieces.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}