19 Mar, 2011, JohnnyStarr wrote in the 1st comment:
Votes: 0
I was thinking that it would be fun to have a card game engine in a mud.
Especially for steam punk and western muds.

I was thinking about writing a MERC compliant poker/card game.


Does this sound like something interesting to *you?

*you = people that would be either interested in this application or want
to have it in their mud.
19 Mar, 2011, KaVir wrote in the 2nd comment:
Votes: 0
I already created one a few years ago, but as far as I know nobody ever used it. However I turned it into a war game for my mud and it's proven pretty popular with the players.
19 Mar, 2011, Runter wrote in the 3rd comment:
Votes: 0
JohnnyStarr said:
I was thinking that it would be fun to have a card game engine in a mud.
Especially for steam punk and western muds.

I was thinking about writing a MERC compliant poker/card game.


Does this sound like something interesting to *you?

*you = people that would be either interested in this application or want
to have it in their mud.


I did it years ago on the mud I ran and it was popular with the players.
19 Mar, 2011, JohnnyStarr wrote in the 4th comment:
Votes: 0
Seems like it would be fun. I really liked Fantasy Fantasy 8s "Triple Triad" and have thought about doing that.
But at the end of the day you can't go wrong with a standard card deck. If there was enough forethought, it
could be designed in such a way that the admin could add "rule" configuration files to add many games like:
poker, crazy 8s, war, rum, gin, etc.

lots of work no doubt.
19 Mar, 2011, KaVir wrote in the 5th comment:
Votes: 0
JohnnyStarr said:
If there was enough forethought, itcould be designed in such a way that the admin could add "rule" configuration files to add many games like: poker, crazy 8s, war, rum, gin, etc.

My snippet handled it with a table:

game_rules_t GameRulesTable[] = 
{
{
/* Name of the card game */ "Draw Poker",
/* Enumerated value */ eGameDrawPoker,
/* Scoring system */ eScorePoker,
/* Are solo bets made? */ eFalse,
/* Is there a minimum bet?*/ eFalse,
/* Maximum players */ 6,
/* Cards in initial draw */ 5,
/* Cards in a full hand */ 5,
/* The last turn is turn */ 3,
/* Turn: 1 2 3 */
/* Burn cards turns 1-10 */ {0,0,0},
/* Shared draw turns 1-10 */ {0,0,0},
/* Can you view hand? */ {1,1,1},
/* Can you place bets? */ {1,0,1},
/* Can you fold? */ {1,1,1},
/* Can you discard cards? */ {0,4,0},
/* Can you draw cards? */ {0,4,0},
/* Can you stick? */ {0,1,0},
/* Can you double down? */ {0,0,0}
},
{
/* Name of the card game */ "Texas Hold 'em",
/* Enumerated value */ eGameTexasHoldem,
/* Scoring system */ eScorePoker,
/* Are solo bets made? */ eFalse,
/* Is there a minimum bet?*/ eFalse,
/* Maximum players */ 10,
/* Cards in initial draw */ 2,
/* Cards in a full hand */ 7,
/* The last turn is turn */ 4,
/* Turn: 1 2 3 4 */
/* Burn cards turns 1-10 */ {0,1,1,1},
/* Shared draw turns 1-10 */ {0,3,1,1},
/* Can you view hand? */ {1,1,1,1},
/* Can you place bets? */ {1,1,1,1},
/* Can you fold? */ {1,1,1,1},
/* Can you discard cards? */ {0,0,0,0},
/* Can you draw cards? */ {0,0,0,0},
/* Can you stick? */ {0,0,0,0},
/* Can you double down? */ {0,0,0,0}
},
{
/* Name of the card game */ "Blackjack",
/* Enumerated value */ eGameBlackjack,
/* Scoring system */ eScoreBlackjack,
/* Are solo bets made? */ eTrue,
/* Is there a minimum bet?*/ eTrue,
/* Maximum players */ 10,
/* Cards in initial draw */ 2,
/* Cards in a full hand */ 5,
/* The last turn is turn */ 2,
/* Turn: 1 2 */
/* Burn cards turns 1-10 */ {0,0},
/* Shared draw turns 1-10 */ {0,0},
/* Can you view hand? */ {0,1},
/* Can you place bets? */ {1,0},
/* Can you fold? */ {1,1},
/* Can you discard cards? */ {0,0},
/* Can you draw cards? */ {0,1},
/* Can you stick? */ {0,1},
/* Can you double down? */ {0,1}
}
};
0.0/5