Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Science, Math, and Philosophy
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-15-2007, 05:37 PM
PBAR PBAR is offline
Member
 
Join Date: Feb 2006
Posts: 57
Default Programming a Poker Game

I'm taking an AI course at university and for a project we are making a poker game between two players. The game is five card stud with no draws.

Anyways, I'm wondering the best way to go about this. I basically need a function that deals a hand and one that evaluates a hand. As of now, I am representing the deck as a 4x13 array of one's, and when a card is dealt its index is changed to a zero. For the poker hand, I thought of representing it with a 2x5 array, where the first row are the card values and the second is the suits. This may not be the best approach and any suggestions are appreciated. I'm an engineering student and not a computer scientist.

I'm wondering what the best way to make the hand evaluator is. Any suggestions are again appreciated. Thanks.

(This will be done in C++)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.