SYSC_2004_Lab_8

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 DocumentRight 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. Bishop
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.

This note was uploaded on 02/08/2010 for the course ELEC 3500 taught by Professor Bhavan during the Spring '10 term at Carleton.

Page1 / 3

SYSC_2004_Lab_8 - Carleton University Department of Systems...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online