File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Game programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Game programming" Watch "Game programming" New topic

Game programming

jandost khoso

Joined: Nov 26, 2001
Posts: 6
please give me some hints for making card games.
i have totally no idea about them.
thanks in advance.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Well, card games are typically played using cards - but I guess you already knew *that*...
Seriously - I think you will have to be a little bit more specific with your question. What are your doubts?

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Gerald Davis
Ranch Hand

Joined: May 15, 2002
Posts: 872
First you need the paper (a solid bit of card), then use a ink jet printer to print it out. But before that, get good graphic software to make your design.
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

You could start very simply by modelling a deck of cards and behavior that's common to all games: shuffling the deck, distributing cards to each player, organizing them by suit and rank.
Every game uses card combinations in some way, so start with some simple add-em-up types: blackjack, fish, etc. Poker is a little more complicated, cribbage even more so (to get the logic right, anyway), so wait on those until you know how you want to do things.

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
I agree. Here's the link:
subject: Game programming
jQuery in Action, 3rd edition