Why do you want this? To play during a break? Or to demonstrate probabilities?
Or to simulate games using different strategies?
There are some functions with names like card.game in the kappalab package, but
they don't look like they do the type of card game you play. If you just
want to play something during a break and do not need it to be a card game, then
there is the sudoku package. I don't know of any other packages currently
out there.
Otherwise, some more detail of what you want could be helpful. Blackjack would
not be too hard to program (computer/dealer has a fixed strategy), but poker
could be more difficult if you want the computer to have a realistic strategy
(not as hard if all players are human, but keeping the cards private becomes
more difficult then).
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Erin Hodgess
> Sent: Tuesday, October 21, 2008 10:10 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] card games
>
> Dear R People:
>
> Are there any packages to play card games, please? In particular,
> poker or black jack?
>
> Thanks,
> Erin
>
>
> --
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.