News for hackers. Stuff that matters.
Re:The Steely, Headless King of Texas Hold ’Em by ianstallings on Thursday September 05, 2013 @09:21AM (#6333966)
The article says the machine can't be beaten. And then points out that a pro has consistently won against it.

This article is filled with bold claims by people that want to sell the idea IMHO. I'm not buying it because even limit texas Hold'Em has never been solved mathematically by super computers, let alone a single machine. Limit Hold'Em is close to being solved but if you check out the last match of pros against a supercomputer you'll find that it's close, but the computer is not a clear winner: http://poker.cs.ualberta.ca/man-machine/Competitors/

I'm just not buying it. Can it beat the average player? Probably. Pros do it everyday. But can it beat a pro consistently and claim a clear victory over humans? To be determined.

Edit: I found a take from High Stakes Limit Pro Anthony Rivera on 2p2: http://forumserver.twoplustwo.com/showpost.php?p=29762774&po...

His stance is that it's probably a break-even situation where you are basically playing another pro, and that he'd rather be playing craps. I guess they really have made a great machine. :D

Re:The Steely, Headless King of Texas Hold ’Em by Someone on Thursday September 05, 2013 @11:06AM (#6334611)
Is it actually possible to mathematically solve those games? Suppose player Alice bets $100; how does player Bob judge that bet? As a strong hand or as a bluff? Any software program will have to model what's inside the head of its opponent, and we know way too little of that to do that.

Moreover, if we could, the opponent may choose a different strategy. It may be like a game with nontransitive dice: if you figure out which dice I use, you can beat me, but if I figure out that you figured that out, I can pick different dice and beat you (http://en.wikipedia.org/wiki/Nontransitive_dice)

I think it is possible to write software that statistically beats any opponent, but proving that it does is way harder.

Re:The Steely, Headless King of Texas Hold ’Em by jib on Thursday September 05, 2013 @12:00PM (#6334941)
Yes it is possible to mathematically solve limit poker (as well as no-limit poker, but no-limit poker is orders of magnitude more difficult - they are effectively different games).

The definition of solvable is "Does there exist a strategy that, regardless of opponents play, is not a losing strategy" though (because the game is symmetrical). It is not possible to solve for "Does there exist a strategy that, regardless of opponents play, guarantees maximum profits". You can solve it for not losing money, but you cant solve it for making the max amount of money.

Trivially it's not possible to write software that beats any opponent (because what would it do playing against itself?) . Less trivially, any game that has a finite amount of decisions (and limit hold-em does) has at least one Nash equilibrium, so there exists a strategy that will at least have you break even.

The way to solve the game is to calculate your odds of winning based on previous actions and ensure that you take actions that make any future decision of the opponent have the same outcome (to reach a Nash equilibrium).

That strategy hasnt been calculated yet, but the best limit players are most likely playing very close to it, at least if you compare to the best no-limit players playing no-limit (the variable amounts possible to bid in no-limit multiplies the possible strategies massively).

Re:The Steely, Headless King of Texas Hold ’Em by Strilanc on Thursday September 05, 2013 @12:38PM (#6335140)
Yes, you can solve them mathematically. The main difference is that instead of a strategy picking a move for each possible state of the game, it picks a probability distribution over moves for each possible state of the game (including history).

Given two strategies, you can determine which one is expected to win and by how much. That allows you to find the strategy that's hardest to take advantage of. In the case of non-transitive dice, the hardest strategy to take advantage of is likely to be "pick each die with equal chance".

That being said, solving these games is extremely expensive. Super-exponential in the size of the game, if I remember correctly. Way worse than games like chess. See this paper: http://www.sciencedirect.com/science/article/pii/00220000849...

Re:The Steely, Headless King of Texas Hold ’Em by iopq on Thursday September 05, 2013 @02:09PM (#6335788)
Yes, this is called the Nash equilibrium strategy.

Let's say for all the possible hand/board combinations and betting patterns you evaluate all of them (with current computing power this is not possible) then you can take the line that maximizes your value assuming your opponent maximizes his. Then you both end up close to even over a long period of play.

But it's even more simple than that: Nash equilibrium strategy says that you have to bluff 1/3 of the time on the river in a certain spot and have a highly valued hand 2/3 of the time.

It doesn't matter whether your opponent calls you or not. If he calls you too much, your value hands get paid off more often. If he doesn't call you enough, he loses too much to your bluffs. If the bet is the size of the pot, then he has to call one half of the time as part of his Nash equilibrium strategy to not get exploited. If he deviates, he will lose to the bot in the long term.

And since this is limit it's actually very simple. Bet sizes in regards to the pot are tiny (1/5 to 1/10 of the pot) and there is no having to choose the bet size or allowing for players to overbet the pot (make a bet larger than the pot)

No limit is a much bigger challenge than limit for computers, because a small edge in limit is too hard to exploit since you'll get tired of exploiting a computer for pennies per hand

Re:The Steely, Headless King of Texas Hold ’Em by lazyant on Thursday September 05, 2013 @12:23PM (#6335059)
The example is not very good because solving or beating the game is always defined "in the long run" ie over a large sample of hands, not one particular hand (ex: if Alice bets $100 all the time she is bluffing a lot since good cards are hard to get)
Re:The Steely, Headless King of Texas Hold ’Em by ianstallings on Thursday September 05, 2013 @11:21AM (#6334707)
Yeah I think that's the main hurdle actually, the information-sparsity problem. We never really know what the opponent holds, unlike chess where nothing can be hidden. Also there is the case of non-optimal play from an opponent and modeling that would be incredibly challenging.
Re:The Steely, Headless King of Texas Hold ’Em by pepve on Thursday September 05, 2013 @10:31AM (#6334413)
Just a note, you don't have to mathematically solve a game in order to win it.
Re:The Steely, Headless King of Texas Hold ’Em by ianstallings on Thursday September 05, 2013 @10:50AM (#6334535)
I agree that it can win, but so can pros and they make mistakes everyday. But I'm saying that a mistake-free strategy cannot be found without some kind of mathematical breakthrough. Unlike say chess, where clear pathways to a checkmate can be calculated using mathematics, no matter how the opponent plays. It's impossible to do that, right now, using computers, when the opponents are human and unpredictable and don't always follow the optimum strategy. Also poker is an information-sparse environment where you can't always win with a certain strategy because you simply don't have enough information, such as the other player's hole cards.
Re:The Steely, Headless King of Texas Hold ’Em by omni on Thursday September 05, 2013 @12:12PM (#6335001)
> But I'm saying that a mistake-free strategy cannot be found without some kind of mathematical breakthrough.

Is this even possible in a game of imperfect information?

Re:The Steely, Headless King of Texas Hold ’Em by jib on Thursday September 05, 2013 @12:25PM (#6335071)
Yes, because you know all possible states of the game.

Starting out you have 2 cards and you know your opponent has one of 2450 possible combinations of cards.

You know exactly how your 2 cards stack up in chances of winning against those 2450 combinations, and you know how much money is on the table initially. Each time an opponent has an action he can take one of two or three actions (call, raise or fold) - your job is to calculate a strategy that makes either of those decisions have the same expected value for your opponent. That is doable, but quite complex, because it requires you to consider not only what your opponent has, but also what possible hands you could have based on your previous actions.

The complexity is obviously enormous (hence why it hasnt been computed yet) but it is not impossible to compute by any definition.

Re:The Steely, Headless King of Texas Hold ’Em by ianstallings on Thursday September 05, 2013 @12:32PM (#6335111)
Not to my knowledge. Not with current computing power and software. That's why I think it would require a breakthrough in mathematics. It boggles my mind even thinking about how it could be tackled. I did find a few papers that dig into the topic: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.51.1...

http://www.econ.ohio-state.edu/jpeck/gametheory/gameL8.pdf

http://robotics.stanford.edu/~koller/Papers/Koller+Pfeffer:I...

It's a problem that is incredibly challenging.

Re:The Steely, Headless King of Texas Hold ’Em by psutor on Thursday September 05, 2013 @03:58PM (#6336539)
IIRC, the article only mentioned the "dumbed down" version now in casinos being beaten by pros.

The earlier part of the article (when it was full strength and in testing) has no mention of it being beaten.

Re:The Steely, Headless King of Texas Hold ’Em by albedoa on Thursday September 05, 2013 @03:01PM (#6336150)
The more important post might be this one from Pokeraddict: http://forumserver.twoplustwo.com/showpost.php?p=25330375&po...
Re:The Steely, Headless King of Texas Hold ’Em by ianstallings on Thursday September 05, 2013 @10:29AM (#6334408)
(Putting this as its own thread because it's so large and slightly off-topic).

I've thought long and hard on this, it's one of my life goals to create a piece of software that could mimic good players in texas hold-em, and I think I might have found a way to do just that using big data, hand histories, neural-networking, and a ton of input by actual players. Or at least a good start.

How would I accomplish this? Well a very high-level overview below. Basically it starts out extremely stupid and grows as a player:

1. Dump hand histories from pros into a large database. The number of hand histories would run into the billions. Users could dump online logs in bulk or create one-offs using input software.

2. Create an input system for a single user to choose a random hand-history and then classify it using tags. For instance tags might help categorize the player's style, the opponent's style, the "street" of play they are tagging, common name for the situation (Facing donk-bet on flop after raising pre-flop), etc. I would leave this fairly flexible and allow users to create new tags. Think similar to Galaxy Zoo but a little less rigid.

3. Using these tags/classifications the system would create a poll and present it to users with a question. What would you do in this particular situation? Where that situation is point in time of a hand history.

4. Eventually the computer player would then have a huge number of situations to use as examples with input from humans on how to proceed. This obviously will be very fuzzy and that's where, IMHO, the strength of the bot actually lies. The system would not lead to a rigid "Do X when Y occurs". It would decide from a large range of choices that have been entered by humans in the polls described above, leaning towards the most common answers first, but trying outliers also.

5. Use a neural network to create pathways based on previous successes.

How would this work once it's all together? An example:

The computer player is dealt AJ off-suit while being last to act on the dealer button. It would ask the database for a set of situations where AJ was dealt to players in the same position. It would then choose one of them and look at the results of the polls. How do most people with the highest success rate play this hand in this particular spot? Choose a random path to take based on that data. Observe and record outcome. This data becomes the true empirical data that the system will eventually rely on. If the situation has been encountered before in it's own play it will look at that and use it or it might choose randomly like it did above from the polling data. Eventually the weight of the empirical data it has collected might outweigh the data from the polls and it will "know" the right move based on its previous pathway choices. If this move is recognized by the opponent and exploited the results would dictate that the system falls back on another random choice. As the data set grows and the system plays the game, it could hypothetically be tuned to play consistently well.

The main hurdle is actually user-input. There would need to be incentive for users to enter the data they think is correct. The system is also open to manipulation through input data so that would need to be thwarted. And then on top of that the system would have to play an enormous amount of hands to create known successful pathways. But I think the sheer randomness and human-like qualities of the system would create a truly awesome experience.

(Joking) Now, does anyone have the $1M+ USD I need to fund this? I promise I'll pay you back. ;)

Re:The Steely, Headless King of Texas Hold ’Em by applecore on Thursday September 05, 2013 @10:52AM (#6334551)
The major online poker sites would already have a corpus of billions of hands played by successful and unsuccessful players.
Re:The Steely, Headless King of Texas Hold ’Em by ijk on Thursday September 05, 2013 @12:47PM (#6335199)
I wouldn't poll the players, at least not nakedly, since that is vulnerable to the stated preference bias. Tracking actual play would be more likely to demonstrate revealed preference.
Re:The Steely, Headless King of Texas Hold ’Em by thisisnotatest on Thursday September 05, 2013 @02:44PM (#6336018)
I don't see what you get from asking people what they think they'd do in certain situations, when you could instead use the actual outcome of the hand as your training labels.
Re:The Steely, Headless King of Texas Hold ’Em by ianstallings on Thursday September 05, 2013 @03:40PM (#6336428)
Validation mainly. Because I worry that the hand histories might not be enough and they may be tainted with more examples of bad play than good. I would like to qualify good play with some human validation.

But I think it's worth looking at to only use hand histories and if possible only validate when something unexpected results. Maybe then I could use the human input to validate the computer's decision. I'm still hashing that out.

Re:The Steely, Headless King of Texas Hold ’Em by Wingman4l7 on Friday September 06, 2013 @04:09AM (#6339247)
Logging hand histories from real players is pretty much how consistently successful poker bots work. The first major lesson you learn when trying to program one is that a rule-based bot is virtually impossible to write. Finding holes or weaknesses in the inconsistent play of humans? Much easier.
Re:The Steely, Headless King of Texas Hold ’Em by sanswork on Thursday September 05, 2013 @06:51PM (#6337636)
Just replaying hands fails to take into account a lot of variables related to the other players play style. Once to start to take those into account the replaying of hands isn't needed.
Re:The Steely, Headless King of Texas Hold ’Em by ianstallings on Friday September 06, 2013 @09:05AM (#6340197)
Yeah I think that's why I would like to add the human input and tagging. Because in a given context it might be a good move, but it also could be classified as a bad move in other contexts. I need to work that out.