Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was having a discussion with my developer mate on following game design.

I have a collection of Move in the Game class. my developer mate is asking me to remove the collection and only have the current move information there.

what is your suggestions?

public class Game
    public String Id { get; set; }
    public String CreatorId { get; set; }

    public List<Player> Players { get; set; }
    public List<Move> Moves { get; set; }

public class Player
    public String Id { get; set; }
    public String Name { get; set; }

public class Move
    public String Id { get; set; }
    public String PlayerId { get; set; }
    public String PlayerName { get; set; }
    public String NextMoveId { get; set; }
    public String NextPlayerId { get; set; }
    public String Position { get; set; }
share|improve this question
-1. While questions of this sort are generally appropriate here, there's just not enough information in this one. What kind of game are you making? How often do you look up moves? How many moves are there? – user744 Dec 10 '10 at 13:50
I think I have asked this question on a wrong place, SO is the best to ask every kind of questions. see this: – Zain Shaikh Dec 10 '10 at 18:31
still thanks... – Zain Shaikh Dec 10 '10 at 18:33
If it works, why mess with it. This is probably a better question to ask on SO. Still, having a list of moves could be useful, as long as it doesn't become a bottle neck. (do moves occur multiple times per frame, are large numbers of moves needed) I doubt there will be a problem though. – Michael Coleman Dec 11 '10 at 4:47

I would say this question isn't related to game design but to software design or software architecture. Anyway, back to topic:

You question is really short and I can't tell what the classes are for but I will do a educated guess. I think Game is your global game context, which contains information several other objects are sharing.

The main question you should answer is: Does any other object need a list of Move or just the current one.

Sorry for the general answer but I can do bettw with more information.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.