CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Fun With Perl: Perl Quizzes - Learn Perl the Fun Way: Re: [Laurent_R] Cool Perl: Edit Log



Zhris
Enthusiast

Sep 28, 2013, 6:21 PM


Views: 192506
Re: [Laurent_R] Cool Perl

Remember its mostly just an algorithm, not a game yet, the rules for blackjack can be found http://en.wikipedia.org/wiki/Blackjack. Theres also a couple of Perl nasties in there too, i.e. inappropriate global var, it will eventually be written in OOP. Although in blackjack the suit (hearts, diamonds, clubs, spades) doesn't particularly matter, i'll eventually need to keep track of all fifty two cards, assigning them to columns / piles. The suit will be important when displaying the appropriate image. I could even put my own twist on the game, i.e. set 4H => [0], therefore making it a special card that will only serve me in achieving a five card trick. I thought it would be best to jump straight into passing a "list of card keys" as oppose to a "list of list of values" to the entry function.


(This post was edited by Zhris on Sep 28, 2013, 8:00 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Sep 28, 2013, 7:25 PM
Post edited by Zhris (Enthusiast) on Sep 28, 2013, 7:27 PM
Post edited by Zhris (Enthusiast) on Sep 28, 2013, 7:27 PM
Post edited by Zhris (Enthusiast) on Sep 28, 2013, 7:28 PM
Post edited by Zhris (Enthusiast) on Sep 28, 2013, 7:58 PM
Post edited by Zhris (Enthusiast) on Sep 28, 2013, 7:59 PM
Post edited by Zhris (Enthusiast) on Sep 28, 2013, 8:00 PM
Post edited by Zhris (Enthusiast) on Sep 28, 2013, 8:00 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives