Java Programming & Applications

Java Programming & Applications - EE3206/EE5805 Java...

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

View Full Document Right Arrow Icon
EE3206/EE5805 Java Programming and Application Assignment 1 – Jungle Chess Due Date: 10pm Nov 3, 2007 (Saturday of Week 9) Marks: 10% of final assessment 1. Introduction Jungle Chess or Animal Chess ( 鬥獸棋 ) is a traditional Chinese board game. It is a two-player, abstract strategy game played on a 7x9 board. In this assignment, you are required to use Java to implement this chess game with Object-Oriented design. 2. Board and Pieces The Jungle game board consists of seven rows and nine columns of squares. Some of the squares are marked as special areas: Den (D), Trap (T) and River (R). Each player has 8 pieces representing different animals with a different rank (1 to 8). The initial setting of a Jungle game board is shown in Figure 1. 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 T T TD R T T T D R R R R R RR R R R R Description Symbol/Rank Elephant 8 Lion 7 Tiger 6 Leopard 5 Wolf 4 Dog 3 Cat 2 Mouse 1 Den (special area) D Trap (special area) T River (special area) R Figure 1. An initial Jungle game board showing the position of pieces, the dens, rivers, and traps. 3. Rules of Movement and Capturing The following rules are a subset of the original rules of Jungle game. You should strictly follow this specification instead of other sources. 1. Players move alternatively with the Blue side first. 2. A player must move a piece either horizontally or vertically by one square during his turn. 3. A piece cannot move onto its own Den.
Background image of page 1

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

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

This note was uploaded on 01/11/2011 for the course EE 3206 taught by Professor Cwting during the Spring '07 term at City University of Hong Kong.

Page1 / 4

Java Programming & Applications - EE3206/EE5805 Java...

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

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