Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6096499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:56:04+00:00 2026-05-23T12:56:04+00:00

I am developing a card game. In the start of the game each player

  • 0

I am developing a card game.
In the start of the game each player gets five cards.
I want to create an event that each on of the players will register to it.
The event will be activated in the start of the game from a class called controller (the class who manage the game).
I want that this event will call the RecieveCards(CardList) of each player.

Each player should get diffrent cards…

The second option, and the simple one (without event), is to create a loop in the controller class that will run on all the players and for each player will call the ReciveCards(CardList).

I think that the first soultion is much more elegant, but I don’t know how it is possible that it will send diffrent cards for each player it .. is there any pattern for it?

Edit: sorry, C# 3.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:56:04+00:00Added an answer on May 23, 2026 at 12:56 pm

    You can use Observer Pattern to notify the prayers about the start of the game or you can use event approach. In this case when the event in raised a player should ask for his set of cards.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im developing a multi-player card game that needs the clients to communicate with each
I'm developing a card game that uses rummy-style sets of three cards. From a
I m developing a card game in android. i need to show three cards
I am developing a card game for batch. [will give a link when done]
I am developing a card game. In this card game the player can set
I am developing a website that will allow customers to pay with credit cards.
I have a card game that I am developing and need to load card
CONTEXT: I'm currently developing a website that will involve Credit Card numbers handling. Confidential
I am currently developing a card game for the iphone using cocos2d. I am
I am developing a Facebook Card Game for my thesis and i am wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.