uno card

uno card design
Last edited on
Am sorry about uno card not jack card... i should design a program for uno card
So you want us to build you an entire game that allows you to play uno, and not only that but also to teach you how it works? That is a large enough project assuming you want a basic gui with no flashy animations or anything. It would be a good project for you to do as a beginner, but do not expect us to design code for you.
Last edited on
We are here to help people on this forum. We very rarely just hand out large sections of code until we see some work from the person asking the question.
Start by defining the rules of the game.

http://en.wikipedia.org/wiki/Uno_(card_game)

From there you can develop the program.

There are 4 sets of color. Red, Green, Blue and Yellow
There 10 numbered Cards. 0 to 9
There are three action cards. Skip, Draw Two, Reverse
There are two black action cards. Wild and Draw Four
There are two copies of each colored regular and action card, except for the zero card, which only have one per suit. There are four "wild" and "wild draw four" cards each, producing a total of 108 cards.

10 * 4 * 2 - 4 (zero) = 76 Numbered Cards
3 * 4 * 2 = 24 Action Cards
2 * 4 = 8 Black action cards

At start of game 7 cards are dealt to each player.
After the initial deal, the top card of the remaining card stack is flipped to start the discard pile.
If the flip card is an action card, it is treated as if the dealer played the card.

Play begins in a clockwise motion (except if a reverse card is flipped at the beginning of the game).

Each player can choose to play a card from their hand that is the same color, number, action type or a black card. Inaddition, the player may choose to play a card and instead draw a card as their turn.

If the player plays a card he does not have to draw a new card.

Action cards are defined as:
Draw Two = The next player must draw two cards and lose their turn.
Skip = The next player must skip their turn.
Reverse = The order of play is reversed from clockwise to counter-clockwise, or from counter-clockwise to clockwise. If the initial exposed card in the discard pile is reverse, then the dealer makes the first play, and play continues in a counter-clockwise direction.
If there are only two players, the Reverse card is treated as a Skip card:[2] the next player must skip their turn.
Wild = The player playing it names a color, and the next legal play must be that color unless another wild is played.
Wild Draw Four = Acts like a wild, but the next player must draw four cards and skip their turn. This card may only be played if the player holding it doesn't have any card matching the current color. See penalties for more information about this card.

First player to 1 card must call Uno. First player to zero cards win.

Upon end, all remaining players count the value of their cards and the player that went out gets the points. First player to 500 wins the game set.

So thats the rules in a nutshell. Now right the algorithm.
thanks to u all
i have design it..
Topic archived. No new replies allowed.