Jump to content

Gin rummy card game,, HELP PLZZZ :((

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
jeremy1984

jeremy1984

    Newbie

  • Members
  • Pip
  • 3 posts
i'm doing assignment in c#, and i'm suppose to build a gin rummy card game which can play by four players over a network :(( i know it sounds impossible, but i did some parts , like the network part, i build a connection between the server and the client,
but now i'm stuck with the game part, i'm really dont know how to build the game,
i suppose to build the game on the server side, right??!!!
so all other player can play it throw the server,
i'm i right, plz ineed some help :(
in the server side i build a few things like a card class that contain a list of the 52 cards,
then i made a deck class wich contain a deck of cards & a shuffled method,
but am i doing right till now??! i have to build aclass that contain the four player hand( the four player will have seven cards each), i dont know how to build that, anny help, and anny help with the array object, i guess i'll need an array of object to put the player hands in it, and send them to the players,
i really dont know, olz help me i'm out of ideas now :((((

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Do you know the rules of Rummy? You will need a deck class, but there will be a few others as well, to handle the various locations of cards.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
jeremy1984

jeremy1984

    Newbie

  • Members
  • Pip
  • 3 posts
the rules are simple, each player will have 7 cards, he must split them into 2 groups, agroup of 4 cards, and agroup of 3 cards, and the first group must be cards with same rank from different suits, and the second group consecutive cards rank of same suit, and of course u can make all the seven cards as one group of consecutive rank , or one group of same rank different suits , sound complicated :S

for example:

(1h 1s 1c 1d 2h 3h 4h)

or
(1h 2h 3h 4h 5h 6h 7h )