Java Programming & Applications

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

Info icon This 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 T D R T T T D R R R R R R R 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.
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern