Dicequiz - Dice Quiz You have become involved in writing software for a game that is played with 6-sided dice A die is placed on a board so that

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

View Full Document Right Arrow Icon
Sheet1 Page 1 Dice Quiz ---- ---- You have become involved in writing software for a game that is played with 6-sided dice. A die is placed on a board so that one of its faces is North, and the die is then moved by rolling it to the North, East, South, or West, so different faces are then on the top, bottom, and sides. A data base is needed to answer queries such as T1 N6 E? which means, if 1 is on Top and 6 is to the North, what digit is to the East? Note that the order in which the first two items are written does not matter, and N6 T1 E? is the same query. To make matters dicier, the die involved are non-stan- dard. They are described by lines such as D T1 B9 N4 E8 W3 S2 which says that in one of its positions, the die has 1 on top, 9 on the bottom, 4 to the North, 8 to the East, 3 to the West, and 2 to the South. Note that the order of items (except for the D) does not matter, so D E8 N4 W3 B9 S2 T1 describes the same die. Also, a die has 24 possible positions, and can be described in any one of these. p
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 04/29/2011 for the course IT 201 taught by Professor K.v.arya during the Spring '11 term at IIT Kanpur.

Page1 / 3

Dicequiz - Dice Quiz You have become involved in writing software for a game that is played with 6-sided dice A die is placed on a board so that

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