Hey guys,
Im working on creating a texas hold'em game for extra credit in robotics. Anyone have any tips on how I would go about telling the game what cards have been delt to who? and a betting system?
Any help would be greatly apreciated and if you have a project that incorperates these principals id love to take a look at it.
Offline
Offline
haha, Sorry I thought it was kinda advanced. Im familiar with variables but not lists. Ill have to mess around with them a little so i can get the hang of it, Basically add the cards in each persons hand to a list? correct?
Offline
tinman313 wrote:
haha, Sorry I thought it was kinda advanced. Im familiar with variables but not lists. Ill have to mess around with them a little so i can get the hang of it, Basically add the cards in each persons hand to a list? correct?
Yes.
Offline
Hiya... check out my Video Poker game - there's a deck shuffling algorithm as well as code to score the hands - you just need to change the game-play to Texas Hold'em and add some AI for your other players... that could be the tricky part!
http://scratch.mit.edu/projects/Ratty1967UK/1219190
Offline
Alright, thanks. Iv made a script that deals the card to the player and AI and keeps track of who has what card but im working on making the progam be able to tell the value of each hand. Like royal flush > Flush > straight... ect. any ideas?
Offline