Placeholder Content Image

The unbeatable poker-playing program

<div class="copy"> <p>When it comes to games, machines have left us in the dust – we’ve been trounced at draughts, chess, even the TV quiz show <em>Jeopardy</em>. But clever humans still had an edge when it came to poker – until now.</p> <p>A new program, Cepheus, plays the game so well you could play against it your whole life and, unless you were unbelievably lucky, still not finish on top. It is the brainchild of Michael Bowling and colleagues at the University of Alberta who published the algorithm behind their winning result in <em>Science</em>.</p> <p>And yes – Cepheus can even bluff.</p> <p>“It will almost certainly leave human opponents in its wake,” says David Dowe, a machine learning and artificial intelligence expert at Monash University.</p> <p>Computer algorithms are very good at cracking those games where players know everything that has occurred before making their move – this is known in game theory as “perfect information”. Examples are Connect Four and draughts – each player can see where all pieces lie on the board. These games were solved by computers in 1998 and 2007 respectively. But poker is an imperfect-information game.</p> <p>A player doesn’t know what cards their opponent holds or what cards their opponent thinks <em>they</em> hold. Not surprisingly, it’s these unknowns that make poker extremely challenging for computers to handle.</p> <p>So in 2008, Las Vegas was a little shaken up when a computer program, Polaris, beat some of its best poker pros at Texas hold ’em.</p> <p>But Polaris was not perfect – it occasionally lost. By rejigging its algorithm, Bowling and his poker research group have upped the ante and “solved” the game of poker while they were at it.</p> <p>“Solving” a game is not quite the same as beating your opponents. When it comes to chess or <em>Jeopardy</em>, all IBM’s Deep Blue or Watson had to do was provide a solution superior to their human opponents – but not necessarily the perfect one.</p> <p>By contrast, Cepheus’s algorithms were derived as rigorously as any mathematical proof. Its solutions are unbeatable by any opponent. So poker can be said to have been solved in a way that neither chess nor <em>Jeopardy</em> have.</p> <p>To get to its virtually unbeatable state, Cepheus had to “learn” from experience. It played the equivalent of a billion billion hands over two months, “… more poker than has been played by the entire human race,” says Bowling.</p> <p>And in a classical example of machine learning, it reviewed every decision, learnt which did or didn’t pay off and used that information to play as perfectly as possible.</p> <p>Cepheus’s strength lies in its ability to solve problems where there is a great deal of uncertainty.</p> <p>A human opponent might win individual hands if they get lucky with the cards, but Cepheus always comes out on top in the long run.</p> <p>Texas hold ’em is the most popular form of poker played today and Bowling’s group restricted Cepheus to a simple version called “heads-up limit hold ’em” – it’s played with two players (heads-up) and has fixed bet sizes and number of raises (limit).</p> <p>But when faced with a decision in real life, people aren’t usually limited to a set number of choices. So might a future version of Cepheus solve a no-limit version of poker? “Out of the question, ” says Bowling.</p> <p>“No-limit poker is considerably more complex. The heads-up limit game has 10<sup>14</sup> (100 trillion) possible decision points and heads-up no-limit hold ’em has 10<sup>140</sup> decision points.” To put that number in context, there are around 10<sup>70</sup> atoms in the universe. If every atom contained its own universe you’d have as many atoms as decision points in heads-up no-limit hold ’em poker, well beyond the capabilities of any computer.​</p> <p>Bowling believes the decision-making strategies Cepheus has mastered will have their greatest impact outside of the games room. Artificial intelligence has a history of beating humans at games and then going on to bigger and better things.</p> <p>For example, IBM’s <em>Jeopardy</em>-winning computer system Watson now helps optimise cancer treatment at Sloan Kettering and provides financial advice at Citicorp and ANZ.</p> <p>Cepheus’s strength lies in its ability to solve problems where there is a great deal of uncertainty. For instance, if you have diabetes, calculating the wrong amount of insulin needed day-to-day can be life threatening, particularly when you take into account unforeseen changes in physical activity or diet.</p> <p>Working with clinicians, Bowling is already using Cepheus-like strategies to develop diabetes management policies, although he says it will be years before they are implemented.</p> <p>Despite heading the poker research laboratory, Bowling says he’s not much of a poker player and has only played a few hands against his “perfect player” program. “The first time I ran for about 20 hands and I was in the lead and ready to quit, but then I played another 20 hands and lost a bunch of money, so now I’m behind,” he laughs.</p> <p>You can try your hand against Cepheus at <a rel="noopener" href="http://poker.srv.ualberta.ca/play" target="_blank">http://poker.srv.ualberta.ca/play</a></p> <p><em>Image credits: Shutterstock  </em></p> <em><img id="cosmos-post-tracker" style="opacity: 0; height: 1px!important; width: 1px!important; border: 0!important; position: absolute!important; z-index: -1!important;" src="https://syndication.cosmosmagazine.com/?id=6287&amp;title=The+unbeatable+poker-playing+program" alt="" width="1" height="1" /> <!-- End of tracking content syndication -->This article was originally published on <a rel="noopener" href="https://cosmosmagazine.com/science/mathematics/the-unbeatable-poker-playing-program/" target="_blank">cosmosmagazine.com</a> and was written by Belinda Smith. </em></div>

Technology

Placeholder Content Image

Bet limits for poker machines to be trialled in Melbourne

<p>To tackle Victoria’s growing addiction to gambling, betting limits on poker machines will be trialled in Melbourne this month. It’s the first trial of its kind and will involved</p> <p>100 volunteer gamblers in 14 venues around Melbourne.</p> <p>The launch is a key part of a proposed multimillion-dollar scheme, as it will help sort out any hiccups with the software before it is rolled out statewide later in the year.</p> <p>The experts however are sceptical that it will be a success.</p> <p>Similar trials have failed in other states, according to Monash University Senior lecturer Dr Charles Livingstone. He suggests that the system should be made mandatory for every player.</p> <p>“The problem is the precommitment scheme being rolled out is voluntary, which means you can use the machines without using the system,’’ he said.</p> <p>“There have been trials in Australia before, in Queensland and South Australia, which showed the take up rates are very small. It is a step forward but as a system that minimises harm it is at the bottom end of the scale.’’</p> <p>The solution to reducing the amount of money being put into poker machines, according to Dr Livingstone, is to introduce a maximum $1 bet.</p> <p>Victorians placed $1.3 billion into the pokies from July to December 2014, with over 40 per cent of revenue coming from users considered to have a gambling problem.</p> <p>While the trial was allocated $2 million in the 2015-16 budget it is believed that the precommitment program has already cost tens of millions of dollars to develop so far.</p> <p>The program would see gamblers given a card to use on the poker machines that would let them set limits, change the thresholds and track their betting habits.</p> <p><span style="text-decoration: underline;"><strong>Related links:</strong></span></p> <p><span style="text-decoration: underline;"><em><strong><a href="/news/news/2015/06/four-seniors-at-bonnaroo/">What happens when a group of 70-something-year-olds go to a music festival?</a></strong></em></span></p> <p><span style="text-decoration: underline;"><em><strong><a href="/news/news/2015/06/music-causes-car-accidents/">Listening to music while driving linked to car accidents</a></strong></em></span></p> <p><span style="text-decoration: underline;"><em><strong><a href="/news/news/2015/06/stationmaster-cat-mourned-by-thousands/">Japanese stationmaster cat mourned by thousands</a></strong></em></span></p>

News

Our Partners