{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

1130tutorial10

# 1130tutorial10 - ComputerProgramming TutorialNotes10...

This preview shows pages 1–10. Sign up to view the full content.

CSC1130 Introduction to  Computer Programming Tutorial Notes 10

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

View Full Document
Assignment 6 Assignment 6 is released! Release Date: 6 November 2007 Due Date: 23:59 midnight, 22 November   2007
Assignment 6 Aims to familiarize you with using  Array  and  Inheritance The game that you are going to implement is  International Chess The most difficult part of this assignment is to  understand the design, and appreciate  the design

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

View Full Document
Task 1 – International Chess There are two players Red and White Take turns to play Have 16 pieces each
Game Rules 6 different pieces

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

View Full Document
Game Rule – Piece Types According to movement Leaper Fixed distance, one movement step King, Knight Rider Unlimited steps in one direction (without blocks) Rook, Queen, Bishop Pawn Special case
Game Rule - Step V.S. Square Square A square on the board. Step The basic movement of a piece Different piece has different step types Length Directions Leaper: one step every movement Rider: unlimited steps every movement

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

View Full Document
Game Rule We are going to use a pair (i,j) to describe the  movement rules of all kind of pieces (i,j)-leaper and (i,j)-rider First of all, we take a look at the basic ruls
Game Rules – Leapers  King movement rule 8 directions One step each movement One  square  in a unique  direction or one square in  both directions   each step both a (0,1)-leaper and a  (1,1)-leaper

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 29

1130tutorial10 - ComputerProgramming TutorialNotes10...

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

View Full Document
Ask a homework question - tutors are online