szerda, november 30th, 2011 | Author:

It is the last day of the month, and I still haven’t finished the game. I have a handful of remaining tasks to make it work, and a few others to make it good. But I don’t really care about the deadline, because for this I have as much time as I want to spend on it.

Anyway, when I have free time – eating, travelling, etc. – I am trying to plan ahead. There is one last large task in my list, here is the broken down step-by-step guide for it:

  1. Validations
    1. Is there anyone playing the game?
      1. Players might be deleted
      2. If 0 players are found, end the game
      3. If 1 players is found, add extra score, end the game
  2. Loading turns
    1. Active turns only – a turn is active as long as no other turn was submitted for the same game from the same player
  3. More validations
    1. Does the player still exist?
    2. “Jump out”s are not included in active
    3. If 0 or 1 actives are present, skip the turn – Turn count is increased, though., so skip to no. 9
  4. Robots acting
    1. Player substitution?
  5. Player positions calculated, “jump out”s are removed from the list
  6. Explosion calculations
    1. coos with bomber player ids
  7. Checking affected players
    1. Effect types:
      1. Self effect: negative score
      2. Other effect: (Can happen in parallel with no. 1)
        1. Score to the bomber
        2. Death to to affected
        3. Affected jumps out until net activity
      3. Store player scores
      4. Recalc high scores
      5. Store movie data
      6. Store turn result data
  8. Mark processed turns as executed in turn X, but keep them active
  9. Check game end criteria:
    1. Turn based: If turn count is >= max turns, close the game
    2. Deathmatch:
      1. If there is only one survivor, close the game, give extra score to survivor, recalc high scores?
      2. 0 survivors: Close the game
  10. Start a new game if needed?

This is about 5 hours worth of work – about three evenings.

Category: Hobbi
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply » Regisztráció / Log in


You must be logged in to post a comment.