This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Relatively new to JAVA, i am looking for some existing design patterns for card games, i have searched the web and not getting much success. Trying to develop a cribbage game but i wanted an existing Design Pattern like Model View Controller MVC.
I don't believe there will be specific patterns out there for specific card games. You may be looking for a design, which is different from a pattern - a pattern will apply in many situations, a singular design will apply only to what it was made for, such as a cribbage game.
If you'd like to see how someone made/designed a card game, try to look for open source or example versions to learn from. Be careful to respect the authors copyright if you do chose to do this.
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
Relatively new to JAVA, i am looking for some existing design patterns for card games, i have searched the web and not getting much success. Trying to develop a cribbage game but i wanted an existing Design Pattern like Model View Controller MVC.
Can anyone help?
Kev
Funny, that was one of the games that I had wanted to write in Java, but just don't have the time.
It's a two-player card game, most recognizable by a pegboard used for scoring.
Basic idea (not the precise rules):
For every round, each player gets 6 cards and discards two. The four discarded cards become the "crib;" the crib is not viewed until all cards have been played for the round. The top card of the deck is exposed. Players alternate placing cards, nondealer first, and score points on various occurences (including total of cards = 15; closest to 31; runs of 3 or more; pairs). Players then score their hands for various combinations, including totals of 15, multiples (pairs+), flushes, and runs; these combinations are made in conjunction with the upcard. Dealer gets the benefit of making combinations using the crib. Winner is first to a predetermined number of points, usually 121.
Hi Jeff! Very nice of you giving me those hints. Seems a pretty complex game, but however I do not feel that the game details will have an impact on the solution (but i might be very wrong).