posted on Wednesday, May 11, 2005 7:20 PM by amachanic

The Texas Hold 'em SQL Challenge

I receive about 25 comment SPAMs a week advertising Texas Hold 'em.

So I figured, why not join the fun?

Here's the challenge: Come up with a schema that represents players, hands, and bets in a series of Texas Hold 'em games. Come up with a method of randomly populating the tables (i.e. dealing the cards). Bonus points for figuring out how to make the players bet intelligently -- i.e. when they have good hands! Finally, come up with a way to figure out how much cash each player has -- a score at any given point in the games.

This should be done entirely using SQL Server 2000 or SQL Server 2005. XML and/or CLR are fair game, of course.

Send the solutions to me via the Contact link. I'll evaluate the responses and post any complete solutions I get. And I'll find some good award(s) for the best solution(s).

Comments

# Texas Hold 'em Hint #1 @ Wednesday, May 18, 2005 10:02 PM

Texas Hold 'em Hint #1

amachanic

# re: The Texas Hold 'em SQL Challenge @ Monday, May 30, 2005 7:57 PM

I contemplated doing something like this in the past, but the human element will always be missing. Sometimes I'll raise with a 2-7 off-suit, but you'll never be able to program a computer to do so...

Aaron

# SQL Server Challenges @ Wednesday, June 15, 2005 5:22 PM

So catching up on the world after a little break (honeymoon).
Found Adam fancies his had as a poker...

Anonymous

# Texas Hold 'em Hint #1 @ Wednesday, June 29, 2005 6:43 AM

The other day I annouced the Texas Hold 'em SQL Challenge. I haven't gotten any feedback on it yet, so...

Anonymous

# SQL Server Challenges @ Sunday, December 04, 2005 4:17 PM

So catching up on the world after a little break (honeymoon).
Found Adam fancies his had as a poker ace...

Anonymous

# SQL Server Challenges @ Wednesday, February 08, 2006 7:52 PM

So catching up on the world after a little break (honeymoon).
Found Adam fancies his had as a poker ace...

Anonymous

# SQL Server Challenges @ Tuesday, May 23, 2006 5:26 AM

So catching up on the world after a little break (honeymoon).
Found Adam fancies his had as a poker ace...

Anonymous

# Texas Hold 'em Hint #1 @ Thursday, July 13, 2006 12:46 AM

Originally posted here.

The other day I annouced the Texas Hold 'em SQL Challenge.
I haven't gotten...

Anonymous

# Texas Hold 'em Hint #1 @ Monday, January 08, 2007 2:29 PM

Originally posted here . The other day I annouced the Texas Hold 'em SQL Challenge . I haven't gotten

Anonymous

# SQL Server Challenges @ Sunday, June 03, 2007 4:48 PM

So catching up on the world after a little break (honeymoon). Found Adam fancies his had as a poker ace

Anonymous