I have a friend across the country who I'd love to play texas holdem with. I am pretty sure that I can write this program for a single computer. Such that if the players didnt mind everyone seeing everyone else's cards, the game would work fine. Clearly, for purposes of gambling this is beyond useless.

I'd love if I could create a webpage that allows my friends to signin (with passwords). We'd all then sit down and play the game such that community cards are revealed to all of us, but that our private cards are sent only to each respective player. The program would also need to know when to accept information (about betting, raising, folding, etc.) from each player and when to then move on to accept information from each other player. I'd also like to be able to tally up amount of money in pot and for each person at all times.

My main question is this... I am *very* new to perl. I think I can figure out the mechanisms of the game, but don't know if it is possible to accept and display input to and from different users simultaneously on a website. Is this very difficult to implement? Where might I look, or what books should I find to learn how to do such things? Does anyone know of any sourcecode for other interactive website games that might give me ideas?

thanks alot,
dana

P.S. When I create this program, I will totally be making it available to everyone!


In reply to Making an Interactive Game on a website (Texas Hold'em) by dchandler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.