Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

"the wish" - a kind of solitaire game

  Asked By: Meenachi    Date: Sep 10    Category: Java    Views: 915
  

Does anyone knows or could write a java application program about the
game
The Wish.

The mechanics of the game is simple:
-it uses 52 cards,
-randomized piling of cards
-4 cards per pile
-line up 8 piles with the topmost card shown.
-If any of that card has the same with any card in different
pile, they get paired and the two cards disappear
-then, the next cards will be shown where the previous cards are
located

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Vonda Ramirez     Answered On: Sep 10

> -it uses 52 cards,

Each card  would be a Object that hold information about the kind of card
it is.

Card[] cards  = new Card[52];

Place Card objects into the array.

> -randomized piling of cards

There is a randomize in the collections framework. If you are not using
a collection you could always make the cards comparable.

> -4 cards per pile

A pile could be a List of some kind.

> -line up 8 piles with the topmost card shown.

Textualy or Graphicly?

> -If any of that card has the same with any card in different
> pile, they get paired and the two cards disappear

Same face? Same value? Same face and value?

Anyway comparable might be the answer, or if not that I would imagine
that the cards would all have a int value for both the face and the card
value.

> -then, the next cards will be shown  where the previous  cards are
> located

Textualy or graphicly?

Textualy it is realy simple, graphicly you are probably asking for quite
a bit of work all on its own.

The making of card games seems to be used quite often in teaching
collections.

 
Didn't find what you were looking for? Find more on "the wish" - a kind of solitaire game Or get search suggestion and latest updates.




Tagged: