1130tutorial10

1130tutorial10 - CSC1130Introductionto ComputerProgramming...

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

View Full Document Right Arrow Icon
    CSC1130 Introduction to  Computer Programming Tutorial Notes 10
Background image of page 1

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

View Full DocumentRight Arrow Icon
    Assignment 6 Assignment 6 is released! Release Date: 6 November 2007 Due Date: 23:59 midnight, 22 November   2007
Background image of page 2
    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
Background image of page 3

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

View Full DocumentRight Arrow Icon
    Task 1 – International Chess There are two players Red and White Take turns to play Have 16 pieces each
Background image of page 4
    Game Rules 6 different pieces
Background image of page 5

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

View Full DocumentRight Arrow Icon
    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
Background image of page 6
    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
Background image of page 7

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

View Full DocumentRight Arrow Icon
    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
Background image of page 8
    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 
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/28/2010 for the course CSC CSC1110 taught by Professor Cjyuan during the Fall '06 term at CUHK.

Page1 / 29

1130tutorial10 - CSC1130Introductionto ComputerProgramming...

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

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