• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

Playing card game

Hi  
 
every one
 
I am tring to write a standred playing card is any one know how to helpe me

thank you
0
Ansary100
Asked:
Ansary100
1 Solution
 
TimYatesCommented:
is this homework?  Playing card games are usually homework ;-)

What problem are you having?
0
 
Ansary100Author Commented:
this is not homework I am traying to learn mor about arrays

0
 
TimYatesCommented:
So why not ask a question about arrays?

We cannot just write reams of code for a Card game (as that won't help you learn about arrays)

We can give advice about arrays though, or answer an array based question...

I assume you've read this:

http://java.sun.com/docs/books/tutorial/java/data/arraybasics.html

?
0
 
sciuriwareCommented:
Don't create solitaire again.
Please read a booklet on card games first to make your choice.
On the internet you'll find databases full of card images,
so your creativity can be focused on the calculus.
;JOOP!
0
 
MogalManicCommented:
Do you need help getting started?

To write ANY program, you need to analyze what objects/classes you will need.  For example, for a card game, you could have these objects:
    Deck - A Deck is a random collection of cards
    Card - A card can be numbers 2-10, J, Q, K, A (Ace could be high or low based on rules)
    Rules - The rules manages how individual cards interact with each other (e.g. Is an ace high or low)

This is just a sampling of classes you might need, there might be more.



Does this help?
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now