A Raspberry Pi Rain Man In The Making

We see a lot of Raspberry Pis used to play games, but this is something entirely different from the latest RetroPie build. This Raspberry Pi is learning how to read playing cards, with the goal of becoming the ultimate card counting blackjack player.

If [Taxi-guy] hasn’t named his project Rain Man, we humbly suggest that he does so. Because a Pi that can count into a six-deck shoe would be quite a thing, even though it would never be allowed anywhere near a casino. Hurdle number one in counting cards is reading them, and [Taxi-guy] has done a solid job of leveraging the power of OpenCV on a Pi 3 for the task. His description in the video below is very detailed, but the approach is simple: find the cards in a PiCam image of the playing field using a combination of thresholding and contouring. Then, with the cards isolated, compare the rank and suit in the upper left corner of the rotated card image to prototype images to identify the card. The Pi provides enough horsepower to quickly identify an arbitrary number of non-overlapping cards; we assume [Taxi-guy] will have to address overlapping cards and decks that use different fonts at some point.

We’re keen to see this Pi playing blackjack someday. As he’s coding that up, he may want to look at algorithmic approaches to blackjack strategies, and the real odds of beating the house.

Continue reading “A Raspberry Pi Rain Man In The Making”

Full Size Star Wars Holochess Build

The quality and attention to detail seen in [Ian Martin]’s build is impressive regardless of his choice to build a functioning holochess set. We’re not to take away from the nerd-gasm this build invokes, but we’d rather draw to attention the craftsmanship of the builder. Sadly [Ian] doesn’t have a proper blog or product page but you can view everything he posts about the project on his social networking page and get his take on the finished work in the video below.

This build is not just a well engineered mechanical design, the electronics that run the controls and indicators are [Ian]’s home brew Arduino Mega shields. A complete game requires two sets of electronics, one for each side of the table so rolling his own shield was probably a space saving decision.

Each of the figures used as game pieces were hand sculpted and painted (is that a Rancor to the right?). User controls are presented in true-to-form fashion with 54 buttons, 26 lights, 10 knobs, and an LCD screen with custom bezel to display custom monster status. Nope, the monsters aren’t animated holograms but to make up for that [Ian] built in ambient noises so you know which are still alive. This is our first time discovering that there is a name other than “Holochess” for the game: Dejarik. We’ll leave it up to the reader to figure out how it’s played.

This is an impressive build and we can’t wait to see what else [Ian] comes up with in the future. We have covered Star Wars builds before and some interesting board game builds but never where the two meet before this.

Continue reading “Full Size Star Wars Holochess Build”