Re: REQ: Deck of cards
Matthew Thomas wrote: > > Dan wrote: > > > > I am a programing student and I am making a simple blackjack game in > > C. I would like to be able to display the cards that are out but have > > never been good at ascii art. Though i have tried. most of my attempts > > were more humerous than cardlike. I some out could whip me up a few > > cards that i could base a deck on that would be GREAT!! The one > > restriction is that the cards can only be 10 characters tall and a > > reasonable number wide. > > > > Thanks in advance! > > > > Dan > > aka Claussen > > Ok, here you go -- 10 characters tall and 12 wide. At this size it's no > good trying to draw a card with, for instance, ten little clubs spread > out on it, so each card has one big symbol in the middle. > > The Ace of spades: > -> .----------. -> |A | -> |s /\ | -> | //\\ | -> | //##\\ | -> | ((####)) | -> | `")("' | -> | '""` s| -> | A| -> `----------' > > Any other spade (in this case, the 2): > -> .----------. -> |2 | -> |s /\ | -> | /##\ | -> | /####\ | -> | (######) | -> | `")("' | -> | '""` s| -> | 2| -> `----------' > > A club (in this case, the 3): > -> .----------. -> |3 | -> |c ee | -> | (##) | -> | ,>##<, | -> | (######) | -> | "')(`" | -> | '""` 3| -> | 2| -> `----------' > > A Diamond (in this case, the 4): > -> .----------. -> |4 | -> |d /\ | -> | /::\ | -> | /::::\ | -> | \::::/ | -> | \::/ | -> | \/ d| -> | 4| -> `----------' > > And a heart (in this case, the 5). > -> .----------. -> |5 | -> |h ,-..-. | -> | /::`'::\ | -> | \::::::/ | -> | \::::/ | -> | \::/ | -> | \/ h| -> | 5| -> `----------' > > With these designs it should be fairly easy to set up a C procedure > which draws the first and last rows automatically, the second and > second-to-last rows based on the card value, and the other rows using a > switch statement for the suit (with an extra option for the Ace of > Spades). > > And finally, a design for face-down cards. > -> .----------. -> | $%$*=-=* | -> | =*$%$*=- | -> | =-=*$%$* | -> | $*=-=*$% | -> | $%$*=-=* | -> | =*$%$*=- | -> | =-=*$%$* | -> | $*=-=*$% | -> `----------' As far as coding in C goes, I like this design also, so I had to add to it! A rediddle to the backs to make them look like a "Bee Brand" Card which most casinos use to prevent cheating. And the funny thing about that is magicians love to use them, but I cannot tell you why...secrets must stay secrets in the magic world! *S* my favorite... .----------. |<><><><><>| |<><><><><>| |<><><><><>| |<><><><><>| |<><><><><>| |<><><><><>| |<><><><><>| |<><><><><>| `----------' or... .----------. |<#>< ><#><| |><#>< ><#>| | ><#>< ><#| |< ><#>< ><| |>< ><#>< >| |#>< ><#>< | |<#>< ><#><| |><#>< ><#>| `----------' If you use my card backs, you can still give Matthew all the credit, because "HE'S THE MAN!" *S* > My initials aren't on these, so as not to distract the player :-), so I > have two conditions if you use these designs: (1) I get a mention in the > credits/about screen/whatever, and (2) you e-mail me a copy of the > source code when you've finished. > > Have fun. > -- __ > /_/\ Matthew Thomas, who dabbles in C himself sometimes > _\_\/_ My real address is mpt26 @ student . canterbury . ac . nz > /_/\/_/\ Grr, my silly news server thinks those cards are quoted text! > \_\/\_\/ THE ASCII ART FAQ: http://www.geocities.com/SoHo/7373/faq.htm -- Peace, Donovan (`/\ `=\/\ __...--~~~~~-._ _.-~~~~~--...__ `=\/\ Poems by \ / ICQ# 812836 \\ Original Poetry, Ascii-Art & `=\/ Donovan V bak...@gwtc.net \\ Animations, Dragons, Baby //_\___--~~~~~~-._ | _.-~~~~~~--...__\\ Pictures, Kool-Aid Info., // ) (..----~~~~._\ | /_.~~~~----.....__\\ Secret Link Game, DA QUIZ! ===( INK )==========\\|//==================== ejm\___/ dwb`---` http://www.geocities.com/Paris/LeftBank/6558/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (".___.") EVANS PLUNGE BEANIE BABIES PRICE LIST _ { + } _ ()__|>o<|__() http://www.gwtc.net/~bakd/bb.html ( . ) (_) (_) New & Retired Beanies available. Prices start at $5.95!
Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,c1b60c8b70184abb X-Google-Attributes: gidf996b,public From: Donovan <bak...@gwtc.net> Subject: Re: REQ: Deck of cards Date: 1998/05/24 Message-ID: <356...@gwtc.net>#1/1 X-Deja-AN: 356051588 Cache-Post-Path: nntpcache1.nortel.net!unk...@firewall.gwtc.net Content-Transfer-Encoding: 7bit References: <356...@hempseed.com> <356...@spamfree.land> Content-Type: text/plain; charset=us-ascii Organization: Poems by Donovan http://www.geocities.com/Paris/LeftBank/6558/ Mime-Version: 1.0 Reply-To: bak...@gwtc.net Newsgroups: alt.ascii-art
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 1998 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.