IISc Computer Science and Automation CSA
   
Home Schedule Registration News Contacts
  
Online Events
Bits 'n' Bytes
Chase
Gold Rush
The Duel
Inhouse Events
Armageddon
Brainwave
Gedanken
InQuizition
SofTeX
Spot the Geeks
Triathlon
Designed By
Pavan, Durgesh
Monu,Srinivas
The Duel
"An Electronic Battlefield"

About FAQ Round-I Results
Problem Description Solution Requirement Submit Software

Frequently Asked Questions

  1. If I get 4 (or 8) then will I have to decide the piece to move immediatly after that or I can get to know next dice number of my extra turn before deciding?

    Ans: You will have to decide the piece to move immediatly after getting 4(or 8). When your piece has been moved, the dice will be thrown again to give you extra turn. You can not delay your decision.

  2. If I have not killed any piece and my piece is near end of the outer loop, can I stay there and send BLOCKED?

    Ans: NO. You can not send BLOCKED here. Either move some other piece or circle again in the outer loop.

  3. Are all the four nests "safe squares" for all the players, or only the nest belonging to the player is a "safe square" for it.

    Ans: Each nest(Yellow square) is the safe square for all the four players.

  4. In a safe square when opponents pieces come they do not kill, but they can co-exist with other player's pieces. Is this correct?

    Ans: Yes, it is correct.

  5. On your first call of my function get_piece_number(int dice, struct board_status bst), is it that i may get 0/4/8/12 as nest or my nest wrt me is always 0 ?

    Ans: Your nest will allways be 0, whenever you will get the board_status.

  6. Does this thing apply at call of update_board also?

    Ans: Yes. Your nest is always 0. In the board_status structure, the first four integers will always be your positions.

  7. If i am the first to play then the board set i receive would be this struct board_status bst={0,0,0,0,4,4,4,4,8,8,8,8,12,12,12,12, 0,0,0,0}; if i move piece 1 to 3 steps then the second player's BST would be bst= {0,0,0,0,4,4,4,4,8,8,8,8,15,12,12,12, 0,0,0,0}; is it so or he would receive bst = {4,4,4,4,8,8,8,8,12,12,12,12,3,0,0,0, 0,0,0,0}?

    Ans: The second player will get 0,0,0,0,4,4,4,4,8,8,8,8,15,12,12,12, 0,0,0,0. This rotation will be taken care of by our interface program.

  8. What are the conditions where I can return BLOCKED?

    Ans: Only when all of your pieces are so near to home, that none of your pieces can be moved due to a dice value larger than distance between the home and the piece farthest from the home. For example if your four pieces are at 23,24,24,22 and you got 3 or more as dice value, then you can not move any piece. But in case you get 4(or 8) you have to return BLOCKED and our interface will give you another chance to play. In case, if you return BLOCKED for any other case, when there is at least one of your piece can move, then you will be disqualified from the game, as well as from "THE DUEL". A piece can not circle again in the inner loop.

  9. If the cowries show 8, and say i decide to move piece 3, in the bonus turn, should i move piece 3 only or can I move any other piece?

    Ans: You can choose any piece in the exrta turn.

  10. Assuming the first kill is made, when we are returning the piece to be moved, how can we choose whether we want to enter the inner loop or continue circulating the outer loop? Is it compulsory to enter the inner loop?

    Ans: It is compulsory to enter the inner loop, after killing.

  11. After register_player() is the get_piece_number() the first function to be called? What if other players begin first? Is update_board() called then, before get_piece_number() ?

    Ans: If you are not the first player then update_board() will be called first.

  12. Is update_board() called only for rest of players who have not made the move? Or even for the player who did?

    Ans: update_board() will be called for all the four players.

  13. In update_board(), Does board_status reflect the changed already made by the last move or is it the status before the move, since the move is also provided through interface?

    Ans: The board_status reflect the positions after the move. move is provided, for those who dont like our board. You have option to use any of the two.

Sponsored By
 
Schedule
Feb. 23, 2005
9:00 A.M. IST (+0530 GMT)