Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2010

    Question Changes Issue in Code

    I m developing a game where there are in all 6 kings trying to conquer new territories on a particular map. Every time the user will play first and then the other 5 kings. Every king can conquer adjacent territory only and not any other territory. Also i m using a random function so that every time the other king can conquer diff territory and not the same one. Now i m able to achieve the 1st turn properly but i want to continue this cycle till the user main territory is conquered by other king. Now i have written the code till second chance i.e after completing the first cycle.

    now my problem is that i have to write each and every case for the user so that he can onquer the adjacent territories only and not any other else. So what i want to ask is that m i going the correct way for my task or is that i should change my approach. Also can anybody give me a small example of the condition changes for every cycle and how the changes are handled in the game for the user. I m not able to post my code since it is too big so pls give me some suggestions and also a small example for doing it. For eg of code pls c my post of "introducing delay"

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Noida, India

    Re: Changes Issue in Code

    Maintain a territory map in 6xN (N=no. of territory), assign an int to each king and fill in the matrix as they move, identify the master cell of the player and allow the contrained random moment for each king in each cycle, checking the master cell for game end.


Similar Threads

  1. Questions on Active Objects
    By schrecklichkeit in forum Symbian
    Replies: 4
    Last Post: 2009-09-09, 17:14
  2. Replies: 3
    Last Post: 2008-11-06, 16:19
  3. Carbide Code scanner Issue
    By sivak in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-02-01, 11:23
  4. Some Code warrior settings Issue plz help!!!!
    By HidayathKhan in forum Symbian
    Replies: 4
    Last Post: 2007-11-14, 05:11
  5. Security code issue for 6230
    By kababoom in forum General Development Questions
    Replies: 1
    Last Post: 2004-08-19, 05:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts