I am teaching myself to code again and thought I would write a card game.I need help with my code design (I am using C#)To start with I am building it as a console application, and later I will extend it so that it works as a web application.The question I have is whether the Player objects are part of the Game objects ? or do Player objects (which are essentially clients) only interact with the Game Object through requests.For example if I had a basic game where I had to deal 4 cards to 4 players and the player with the highest card wins. If two people get the same high card rank then the cards a re-dealt.If the Players (clients) are not part of the Game (Server) then what is the design principal to trigger the event and rule to determine the highest card and then whether to redeal. The Players themselves can only be aware of their own state.Are the cards dealt to a player an attribute of the Player or are they an attribute of a List of Cards tied to the Game Object.Just looking for some pointers here on design approach.
Need help designing a card game
c#;design;object oriented design;game development