Thread: Console Poker

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    13

    Console Poker

    For a group project in school, we made a poker game. I did all the display stuff, and another guy did the checks to see which hand wins. I was kinda stuck doing display because I didn't know how to play poker (and still don't), but I think it turned out pretty good. The credits at the end may go too fast or slow, depending on your computer.

    Has anyone else tried making a card game that actually shows the cards instead of just printing what they are in text? I'd like to see how mine compares to others.

    Here's the source code , but it's very messy because it was worked on by 2 other people and we all have different styles, and it was our first major project using functions so we got a little out of hand...plus my friend likes to insult people through variable names and such without commenting...

    Any comments/suggestions?

  2. #2
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138
    very good! Suggestion though, let the user choose if (s)he wants to keep playing so they dont have to go rerun the .exe each hand.

    edit: funny class names
    Last edited by o0obruceleeo0o; 04-08-2003 at 06:27 PM.

  3. #3
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138
    I tried to compile the source code but got a few errors:
    ------Configuration: practice - Win32 Debug--------------------
    Compiling...
    practice.cpp
    C:\Documents and Settings\Travis Hatley\My Documents\Travis\practice\practice.cpp(43) : error C2146: syntax error : missing ';' before identifier 'handtype'
    C:\Documents and Settings\Travis Hatley\My Documents\Travis\practice\practice.cpp(43) : error C2501: 'string' : missing storage-class or type specifiers
    C:\Documents and Settings\Travis Hatley\My Documents\Travis\practice\practice.cpp(43) : fatal error C1004: unexpected end of file found
    Error executing cl.exe.

    practice.exe - 3 error(s), 0 warning(s)



    ......using VC++ 6.0

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    13
    Originally posted by o0obruceleeo0o
    I tried to compile the source code but got a few errors
    Yeah I didn't think it would compile with most compilers...we used Borland C++Builder 4.0 and it seems to let you get away with quite a bit. I tried it in Dev-C++ and it got some of the same errors you got....it's prolly all the global variables and horrible funtions that my friend wrote...


    I added a "Play Again" thing to the end...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  2. Problems with a simple console game
    By DZeek in forum C++ Programming
    Replies: 9
    Last Post: 03-06-2005, 02:02 PM
  3. Console Functions Help
    By Artist_of_dream in forum C++ Programming
    Replies: 9
    Last Post: 12-04-2004, 03:44 AM
  4. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM