|All News -> Projects|
|Written by Nicholas McClanahan|
|Monday, 09 April 2012 10:21|
Win more poker games with Poker Buddy, the pocket-sized Poker Computer.
Poker Buddy calculates the odds that you have the winning hand at each point in the game, so you can maximize your betting strategy. Here's a little demo;
How much does it cost?
First, collect all the parts you'll need;
Make It: Pin HeadersThe QuickStart does most of the work and the few external connections we need will be built on top.
We only need to connect to some of the headers on the QuickStart. Using your pin headers, cut a strip that's 14 pins long, and insert it in the top row. Cut out a single pin and insert it at #39. Your board will look like the photo;
Then, put your prototyping board on top, as shown;
And solder it to the pin headers. #39 is Ground, and it connects to the long buss.
Make It: CircuitUsing a bit of hookup wire, connect the header position #30 to the center strip. Connecting #30 to ground allows the QuickStart to work with an external power source, so it's a pretty common connection.
The 10k resistors connect #28 and #26 to Ground; connect them like this;
#28 on the header is Propeller P27 #26 on the header is Propeller P25. These are 'pull-down' resistors, they keep P27 and P25 at ground untill we connect them to Vdd.
Make It: SwitchesFlatten the leads on each of the switches, and cut off two leads from each so they look like this;
Cut two equal length strips of hookup wire and solder one side of each wire a leg of each switch. You'll have something like this;
Connect the other side of each wire to #28 and #26;
The other end of each switch gets connected to V33. Cut two more equal length hookup wires and connect them both to V33;
Make It: HeadphonesAdd the Electrolytic cap to the board, as shown;
There's a stripe on the Electrolytic cap - it goes on the left.
Now, cut the headphone plug off your set of donor headphones. There should be three wires;
The bare copper wire connects to the middle buss on the breakout board. And either the green or red wire connects to the other side of the capacitor. Here's what that looks like;
Almost done! Last thing is to add the battery box. Red wire goes on the top right, and the black wire goes on the center buss;
Now you can turn your soldering iron off - let's get it running.
Using it: InstallationBefore installing, setup the Propeller Tool (Mac / Linux / Windows Instructions), download the Poker Buddy sourcecode (here) and unzip to a new directory on your desktop. Open 'Poker_buddy_Standard.spin and hit F10 (load to EEPROM).
You probably don't want to put Poker Buddy on the game table - an easy place to install it is in your pocket. Have the switch wires run down your pant leg and into your shoes. A little double stick tape will hold them down. I suggest one switch per big toe, but it's up to you.
Using it: Playing PokerEverything can be customized, but here's the default setup;
1 - New Deal
The first thing you'll enter is the number of players at the table. Each tap on Button A = another player. So if you're playing against 2 other players, tap Button A twice and then tap Button B to lock it in.
2 - Your Hand
Right after locking in the number of people you're playing against, you'll enter the two cards you were dealt. First, the rank
3 - Flop
Next, you'll be prompted for the '# of players' - this is the number of competitors remaining after the pre-flop betting round. If there were 4 competitors and 1 folded before the flop, enter 3 (three taps with Button A and a tap with Button B to lock it in).
Enter each card of the flop, in the same way you entered the cards in your hand - first the rank, then the suit.
After the flop has been entered, your updated probability will be calculated and read out loud.
4 - Turn
Now, enter the number of players remaining after the flop betting round. If there are two competitors remaining, enter 2 (two taps with Button A and a tap with Button B to lock it in) Then, enter the turn card in the same way you entered the cards in your hand.
After you enter the turn card, probabilities will be updated and read to you.
5 - River
Finally, enter the number of players remaining after the turn betting round. Then enter the rank and suit of the river card. The final odds will be calculated and read to you, and the system will reset for the next hand.
If you want to fold, just hold down Button A and Button B at the same time and the system will set up for the next hand.
CustomizationsHere are a few ideas on how to customize your Poker Buddy;
The default Poker Buddy program uses a 'text-to-speech' engine to give you feedback - I found that it sounds pretty rough and I upgraded my to play back audio files - recordings of me reading numbers and suits. Here's the updated program using voice playback.
Instead of alerting you audibly, why not turn a small vibrating motor or blink an LED connected to your sunglasses?
Whatever you do do customize Poker Buddy, have fun with it and let us know how it goes!