Let The Cards Fall Where They May, With A Robotic Rain Man

Finally,  a useful application for machine vision! Forget all that self-driving nonsense and facial recognition stuff – we’ve finally got an AI that can count cards at the blackjack table.

The system that [Edje Electronics] has built, dubbed “Rain Man 2.0” in homage to the classic title character created by [Dustin Hoffman] for the 1988 film, aims to tilt the odds at the blackjack table away from the house by counting cards. He explains one such strategy, a hi-low count, in the video below, which Rain Man 2.0 implements with the help of a webcam and YOLO for real-time object detection. Cards are detected in any orientation based on their suit and rank thanks to an extensive training set of card images, which [Edje] generated synthetically via some trickery with OpenCV. A script automated the process and yielded a rich training set of 50,000 images for YOLO. A Python program implements the trained model into a real-time card counting application.

Rain Man 2.0 is an improvement over [Edje]’s earlier Tensor Flow card counter, but it still has limitations. It can’t count into a six-deck shoe as the fictional [Rain Man] could, at least not yet. And even though cheater’s justice probably isn’t all cattle prods and hammers these days, the hardware needed for this hack is not likely to slip past casino security. So [Edje] has wisely limited its use to practicing his card counting skills. Eventually, he wants to turn Rain Man into a complete AI blackjack player, and explore its potential for other games and to help the visually impaired.

Continue reading “Let The Cards Fall Where They May, With A Robotic Rain Man”

Tote Boards: The Impressive Engineering Of Horse Gambling

Horse racing has been around since the time of the ancient Greeks. Often called the sport of kings, it was an early platform for making friendly wagers. Over time, private bets among friends gave way to bookmaking, and the odds of winning skewed in favor of a new concept called the “house”.

During the late 1860s, an entrepreneur in Paris named Joseph Oller invented a new form of betting he called pari-mutuel. In this method, bettors wager among themselves instead of against the house. Bets are pooled together and the winnings divided among the bettors. Pari-mutuel betting creates more organic odds than ones given by a profit-driven bookmaker.

Oller’s method caught on quite well. It brought fairness and transparency to betting, which made it even more attractive. It takes a lot of quick calculations to show real-time bet totals and changing odds, and human adding machines presented a bottleneck. In the early 1900s, a man named George Julius would change pari-mutuel technology forever by making an automatic vote-counting machine in his garage.

Continue reading “Tote Boards: The Impressive Engineering Of Horse Gambling”

Beating The Casino: There Is No Free Lunch

When you are a hardware guy and you live in a time of crisis, sooner or later you find yourself working for some casino equipment company. You become an insider and learn a lot about their tricks. I’ve been in touch with that business for about 30 years. I made a lot of projects for gambling machines which are currently in use, and I had a lot of contact with casino people, both owners and gamblers.

Now I’m sure you expect of me to tell you about the tricks they use to make you spend your money. And I will: there are no technical tricks. This isn’t because they are honest people, but because they don’t need it. Mathematics and Psychology do all the work.

Does the risk of gambling pay off? Mathematically speaking, no – but it’s up to you to decide for yourself. One thing is for certain – whether you decide to gamble or not, it’s good to know how those casino machines work. Know thy enemy.

Continue reading “Beating The Casino: There Is No Free Lunch”

Raspberry Pi Coin Dozer Won’t Make You Rich

Raspi in a coin dozer case

[SoggyBunz] lucked up and scored an Ultimate Raspberry Pi Bundle from Element 14. His idea was to use a Raspberry Pi to make a retro-mechanical arcade Coin Dozer game, and decided to build his first prototype inside a vacant Macintosh Plus shell.

The game is based on a Raspberry Pi running a small Python script. The Raspi operates a small servo that moves a piece of acrylic back and forth in a somewhat random fashion. The coins are inserted into slots cut into the Macintosh shell and eventually pile up. The moving acrylic lever pushes your winnings out of the machine and deposits them on whatever it’s sitting on, unlike this coin dispensing machine.

[SoggyBunz] concedes that the build is a bit rough and a servo is not the best choice of an actuator. But he aims to build a much improved version, and we can only hope he puts it on Hackaday.io and tips us in! Stick around after the break for a video of the Pi Dozer in action.

Continue reading “Raspberry Pi Coin Dozer Won’t Make You Rich”

Dispensing Change For Low-stakes Gambling

change

Every year, [Nathan] hosts an Oscar party with a lot of drinking, adoring the off-color comments of [Joan Rivers] and some low stakes wagering. Everyone throws a dollar into the pot for a particular award, and when the winner is announced, [Nathan] splits the pot between the winners and begins counting out coins. As convenience stores have discovered, there’s an easier way to dole out pocket change, so this year [Nathan] created a change machine that dispenses coins for the winners.

The change machine is just like the ones you would find at a supermarket or convenience store; load up the machine with a few rolls of coins, and a few solenoids fire in response to serial data received from a computer. [Nathan] used an Arduino, Serial shield, button matrix, and LCD display for his change machine interface, allowing him to dispense pocket change to each of the winners after an award is announced.