C Board  

Go Back   C Board > Community Boards > Contests Board

Reply
 
LinkBack Thread Tools Display Modes
Old 08-04-2005, 09:28 AM   #1
Tropical Coder
 
Darryl's Avatar
 
Join Date: Mar 2005
Location: Cayman Islands
Posts: 503
Texas Hold'em

In a previous thread there was some discussion on holding a Texas Holdem contest vs blackjack and some 3rd choice...

Anyway, I was a Texas Holdem advocate and since I already have a poker framework for 5 card draw/stud, I figured I'd convert it over to texas Hold'em, but I have a question.
Built into the framework is the ability to evaluate the hands to determine the poker ranking ie. flush, straight etc...

The question is should I provide access to the evaluation functions to the contestants or since this is a learning experience as much as a contest, should I force the player to evaluate their own hands?

What's your opinions on this?
Darryl is offline   Reply With Quote
Old 08-04-2005, 12:27 PM   #2
and the hat of marbles
 
Sang-drax's Avatar
 
Join Date: May 2002
Location: Göteborg, Sweden
Posts: 2,038
Players should write their own evaluation functions, but anything that makes more people enter is perhaps a good thing. The focus will be tactics anyway.
__________________
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
Sang-drax is offline   Reply With Quote
Old 08-04-2005, 03:03 PM   #3
Magically delicious
 
LuckY's Avatar
 
Join Date: Oct 2001
Posts: 856
I agree with Mister Drax. A part of the assignment should be to successfully determine the state of a hand. If a contestant's code is unable to perform this accurately, it will tend to lose against better written submissions. This sounds to be a very desirable requirement of such a contest.
LuckY is offline   Reply With Quote
Old 08-04-2005, 03:51 PM   #4
Registered User
 
kryptkat's Avatar
 
Join Date: Dec 2002
Posts: 409
card game rules please. <learned that lesson the hard way meow>
kryptkat is offline   Reply With Quote
Old 08-04-2005, 07:08 PM   #5
Registered User
 
Join Date: Jul 2005
Posts: 9
this should explain the rules of the game pretty well. You can count me in, just tell us some of the specifics (format of the cards, how we look at the widow cards, functions for betting, etc.). I think it would make it more of a challenge to make us evaluate our own hands, but If you want more players, then start out with us being allowed to use them, and if turnout gets better, you can change it to evaluating on our own.
-cheers-
Jherry is offline   Reply With Quote
Old 08-04-2005, 08:06 PM   #6
Tropical Coder
 
Darryl's Avatar
 
Join Date: Mar 2005
Location: Cayman Islands
Posts: 503
hmm, I have been debating both, on one hand, it would be a good excercise for the programmer, but on the other hand, the contest is really about writing the better texas holdem algorithm. Additionally, if I release the framework for them to test with, I won't be able to hide the function anyway and it's a required part of the framework to evaluate the hands. So I won't give access to it, but for those that want to copying/modifying my function to fit their needs won't be hard.

@Jherry, sorry I am not familiar with the term widow cards, but anyway, I will give you the details tomorrow. I will release the player class that the contestants will have to overide...that should be enough to get everyone started.
Darryl is offline   Reply With Quote
Old 08-05-2005, 11:20 AM   #7
Tropical Coder
 
Darryl's Avatar
 
Join Date: Mar 2005
Location: Cayman Islands
Posts: 503
Ok as promised, here is a preliminary player class, subject to change, although I don't speculate it will.

I also included the card class, as the player class depends on it.
Basically, you will take the file Your_Player.h and fill in the blanks. Rename your_player.h and the class to something you find more suitable (try to be unique)

The file player.h has been commented to explain how each function works.

The framework hopefully will be finished this weekend for you to be able to test your players with. I'll include a practice bot and a console/human player as well.

I am hoping to get at least 8 participants
Attached Files
File Type: h card.h (888 Bytes, 107 views)
File Type: h player.h (2.3 KB, 104 views)
File Type: h Your_Player.h (356 Bytes, 104 views)
File Type: cpp card.cpp (557 Bytes, 108 views)
Darryl is offline   Reply With Quote
Old 08-05-2005, 07:16 PM   #8
Registered User
 
Join Date: Jul 2005
Posts: 9
just a quick question, are you going to be logging the game for us? If not, can I add a function to do so in actionNotify, and have you send me the log? How many chips will we start out with? Also, the widow is just the community cards.

Last edited by Jherry; 08-05-2005 at 07:27 PM.
Jherry is offline   Reply With Quote
Old 08-05-2005, 08:02 PM   #9
Tropical Coder
 
Darryl's Avatar
 
Join Date: Mar 2005
Location: Cayman Islands
Posts: 503
Quote:
Originally Posted by Jherry
just a quick question, are you going to be logging the game for us? If not, can I add a function to do so in actionNotify, and have you send me the log? How many chips will we start out with? Also, the widow is just the community cards.
The game will be logged and provided. I was thinking 10000 chips to start with
Darryl is offline   Reply With Quote
Old 08-09-2005, 08:43 AM   #10
Registered User
 
kryptkat's Avatar
 
Join Date: Dec 2002
Posts: 409
ok thank you.

Quote:
I was thinking 1000000 chips to start with
i think i get the idea.
kryptkat is offline   Reply With Quote
Old 08-21-2005, 04:51 AM   #11
Registered User
 
Join Date: Sep 2004
Posts: 720
is there an original post to this contest? when's the deadline? how often will the blinds raise? will there be antes or just the blinds? where in the code can you get your (table) position and the amount of players in the hand who have yet to act?

if i have time i'll get in. i say you hold a monthly tournament too. i think it would be kind of cool to have our players get more experienced over time. in other words, everyone can tweak their code to make their players better each month. a program like this could get very large and complex. it would be cool to go all out on it, but if everyone did, everyone would lose interest in the time it takes to do something like that. if we had monthly tournaments, i think we could keep up the interest and have adequete time to write some real good code.
__________________
Quote:
i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.
misplaced is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Texas - Toronto. Sites to see? jrahhali General Discussions 11 06-19-2009 09:03 AM
Texas UFO sightings Bubba General Discussions 8 02-06-2008 03:33 PM
Final compilation of texas holdem poker game System_159 C++ Programming 6 12-12-2006 12:12 PM
Texas Chainsaw massacre vasanth A Brief History of Cprogramming.com 12 11-19-2003 02:54 PM
Texas Instruments Calculator golfinguy4 C++ Programming 1 01-13-2002 02:45 PM


All times are GMT -6. The time now is 02:56 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22