<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-4460200953899260582</atom:id><lastBuildDate>Tue, 01 Sep 2009 18:07:49 +0000</lastBuildDate><title>Texas Holdem Hand Analyzer</title><description></description><link>http://www.potnut.com/blog/blog.html</link><managingEditor>noreply@blogger.com (Jay)</managingEditor><generator>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-4895221320115987742</guid><pubDate>Tue, 01 Sep 2009 17:36:00 +0000</pubDate><atom:updated>2009-09-01T11:07:49.332-07:00</atom:updated><title>Not exactly a coin toss</title><description>Part of the reason I built the hand analyzer was that I didn't totally trust the odds I would see on the television. Whenever someone turns over Ace - King or Ace - Queen against a low pocket pair they always say that it is a coin toss. Well I decided to run 23,000 hands a see exactly how close it is to a coin toss.&lt;br /&gt;&lt;br /&gt;You can see that after my 23000 hands are run, the low pocket pair (in this case 6's) wins decidedly by about 9.5 percent advantage over the Ace - Queen. I also let the two over cards have one of the same suit as the pair.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.potnut.com/pa/screenshots/cointoss.jpg"&gt;http://www.potnut.com/pa/screenshots/cointoss.jpg&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In my second example, Ace - Queen versus pocket 8's, I decided to not overlap the suits. I ran the simulation again, this time for 50,000 hands. After it is all said and done, with no overlap of suits this time, the 8's are the decided winner, this time by 11.5%. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.potnut.com/pa/screenshots/cointoss2.jpg"&gt;http://www.potnut.com/pa/screenshots/cointoss2.jpg&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So the next time you flip over your small pair to someone's over cards, and they say 'coin toss' be sure to correct them. Take your 10% advantage and win yourself some money with it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-4895221320115987742?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2009/09/not-exactly-coin-toss.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-7401618841487472344</guid><pubDate>Wed, 25 Mar 2009 17:02:00 +0000</pubDate><atom:updated>2009-03-25T10:04:51.462-07:00</atom:updated><title>Recompiled latest version of Silverlight</title><description>Hi everyone, &lt;br /&gt;I was able to successfully recompile the project using the release version of silverlight, I am having some strange issues with one of my custom controls, where I can't play around with it in design mode, but I can compile it and it works.&lt;br /&gt;I might have to just start from scratch on this control and build a new one if I can't figure it out.&lt;br /&gt;Anyway, the app is working and I would appreciate some feedback. I have an idea of what I would like to see this app do, but it can only get better if you give me some input.&lt;br /&gt;Jay&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-7401618841487472344?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2009/03/recompiled-latest-version-of.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-5318113489934076888</guid><pubDate>Fri, 17 Oct 2008 20:52:00 +0000</pubDate><atom:updated>2008-10-17T13:57:53.735-07:00</atom:updated><title>1.01 Bug fixes, found solution to card size</title><description>Hi all, &lt;br /&gt;&lt;br /&gt;I fixed a couple of bugs, first of all if two people both have a flush of the same suit, the person with the largest heart in his/her hand will have the higher score, thus will win the hand. Previously it wasn't taking into account other ranking cards in the flush.&lt;br /&gt;&lt;br /&gt;Secondly I figured out a solution to allow the cards to be drawn smaller, my next step will be to allow 10 (or 11) players to all be drawn on the board at once.&lt;br /&gt;&lt;br /&gt;Also I need to put a table in the background, and fix the summary of the kickers so it doesnt bleed over into another persons hand. This will take a lot of tweaking, but not necessarily a lot of coding.&lt;br /&gt;&lt;br /&gt;Comments, as always are welcome.&lt;br /&gt;&lt;br /&gt;Jay&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-5318113489934076888?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/10/101-bug-fixes-found-solution-to-card.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-6647491500940901027</guid><pubDate>Wed, 01 Oct 2008 17:21:00 +0000</pubDate><atom:updated>2008-10-01T10:28:03.016-07:00</atom:updated><title>Version 1.00 Released today!</title><description>Hi everybody, &lt;br /&gt;&lt;br /&gt;Well its been a long road to get here, well okay not that long only a couple of months, but a lot of code has been written to get to this point.&lt;br /&gt;&lt;br /&gt;Version 1.00 is working and has all the originally envisioned functionality. I only go up to 5 players at the moment, the reason isn't because more players are harder or anything, its just that the size I picked for the cards is a bit too big. You can expect that in a future release the cards will be be better sized, and potentially there will be an actual table not just a green background. Also things like buttons and stuff will moved around, and maybe the interface will change, things will look different. I also hope to continue adding functionality on it.&lt;br /&gt;&lt;br /&gt;Percentages are calculated on the fly, and the number of times a player wins a hand based upon a simulation is kept track of, until the refresh button is pressed, or until one of the redeal buttons is pressed.&lt;br /&gt;&lt;br /&gt;Please post here, or contact me at getref@hotmail.com.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-6647491500940901027?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/10/version-100-released-today.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-6722123395396079292</guid><pubDate>Mon, 29 Sep 2008 22:04:00 +0000</pubDate><atom:updated>2008-09-29T15:09:42.773-07:00</atom:updated><title>Added Some Player Tracking Ability</title><description>Hi all, &lt;br /&gt;&lt;br /&gt;It has been a while since I posted an update for everybody, so I figured I would compile the latest version and post it so you can see what is coming up.&lt;br /&gt;&lt;br /&gt;I added a small grid on the left hand side that will be used to track how many times a player wins a particular hand. I'm not 100% sure how this part will work just yet, I think I will allow the user to reset the grid whenever they want, and it will automatically reset when you change the number of players on the right hand side. &lt;br /&gt;&lt;br /&gt;Work continues, slowly but surely. I have much more in store for this application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-6722123395396079292?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/09/added-some-player-tracking-ability.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-7289920658509551434</guid><pubDate>Thu, 18 Sep 2008 14:48:00 +0000</pubDate><atom:updated>2008-09-18T07:58:21.481-07:00</atom:updated><title>Work stalled</title><description>Well work has temporarily stalled on the hand analyzer. I haven't forgot about it, but a new project just started at work and that leaves me less time to self-teach myself Silverlight.&lt;br /&gt;&lt;br /&gt;I posted the latest build up, so everyone can play with it. It isn't much different than the last build, except it allows 5 players now. I think I need a smaller deck of cards if I am going to try and squeeze 10 players onto this table, either that or I need to increase the size of the table. I dont want to do this because it might cause problems for people with smaller resolutions than what I am running.&lt;br /&gt;&lt;br /&gt;This is a fun project, and I will definitely work on it more, but for a little while work is going to be going at a slow pace. I need cards with smaller images (I can probably just resize these ones if I need to, in fact Silverlight might have an object that I can use that will resize the image for me.&lt;br /&gt;&lt;br /&gt;As always, feedback would be much appreciated. Early feedback makes it a lot eaiser for me to change the application, and the earlier I fix / create something the easier it is to integrate. Late fixes always seem to be more difficult/sometimes impossible without a total rewrite.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-7289920658509551434?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/09/work-stalled.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-7586831429925955445</guid><pubDate>Fri, 29 Aug 2008 17:48:00 +0000</pubDate><atom:updated>2008-08-29T10:55:20.268-07:00</atom:updated><title>Addition of Hand types / Declaring a Winner</title><description>Well work is going well on this Silverlight project. There are only two hand types that the application does not properly check right now, a straight and a straight flush. Correction, it does check a straight, but it doesn't assign a score or a high card associated with it so the application would not be able to tell who won the hand if both hands had a straight.&lt;br /&gt;&lt;br /&gt;I expect to have both of these algorythyms (straight flush and straight) completed soon, and have already tried adding a player to the board and my logic seems to work good for 3 players. I will try adding 4 - 10 hopefully soon as well.&lt;br /&gt;&lt;br /&gt;I wanted to post a code update for everyone so that they can see the progress so far. Projects like this have a tendency to suck up a lot more time than they initially feel like they should take. This project is no exception to the rule.&lt;br /&gt;&lt;br /&gt;If you find any places where the code seems to be acting in a way that it shouldn't then let me know. Please be very descriptive as to how to replicate the problem/error (step by step process).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-7586831429925955445?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/08/addition-of-hand-types-declaring-winner.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-5380863636351887269</guid><pubDate>Mon, 25 Aug 2008 21:15:00 +0000</pubDate><atom:updated>2008-08-25T14:33:51.587-07:00</atom:updated><title>Work Continues</title><description>I have added all the basic types of hands now, but am missing high card, and there is only calculation for kicker done currently on two pairs.&lt;br /&gt;&lt;br /&gt;The maximum value a given hand for score is now 141,414,141,414. I've gone over the logic many times and I think that this system for score will cover all the possiblities. If not I may have to rework the way score works at a later date.&lt;br /&gt;&lt;br /&gt;Determining which hands wins the hand will be done as such. First, the types of hands are ranked from top to bottom, with straight flush being the highest valued hand, and high card being the lowest.&lt;br /&gt;&lt;br /&gt;The logic works as such: All hands face off, the highest type hand wins outright, if there are two or more hands with the same hand type, that is the point that it goes to the score.&lt;br /&gt;&lt;br /&gt;I was going to incorporate the hand type into the score, but looking at it I think I would require too long of a integer, also this sort of locks me into always combining those two values into score, and there may be some reason to split them in the future.&lt;br /&gt;&lt;br /&gt;Each card is assigned a value equal to its Rank 2=2points, 3=3points, .. King=13points, Ace=14 points. &lt;br /&gt;&lt;br /&gt;If two or more hands have the same hand type (ie: Two Pair) then we go to a showdown based upon score. Every hand has a top card which is always worth more than the bottom card. In the case of two pair, the top (highest) card is multiplied by 10,000,000,000 and is added to the score. So if someone had 4's versus someone else's 3's, they would have a score of 40,000,000,000 versus 30,000,000,000.&lt;br /&gt;&lt;br /&gt;Lets say they both have 2's as their second card, since 2's is the low card in the two pair scenario, we only multiply it by 100,000,000.&lt;br /&gt;This leaves us with 40,200,000,000 and 30,200,000,000 for scores.&lt;br /&gt;&lt;br /&gt;Aces and Queens versus Aces and Kings. 141,200,000,000 &lt; 141,300,000,000&lt;br /&gt;&lt;br /&gt;When we go to add the first kicker, the first kicker will occupy the 5th, and 6th position of our 141,414,141,414 numbers. &lt;br /&gt;&lt;br /&gt;Ace/King with a Jack Kicker versus Ace/King with a 10 Kicker.&lt;br /&gt;141,311,000,000 &gt; 141,310,000,000&lt;br /&gt;&lt;br /&gt;I think this works for all scenarios of two pair.&lt;br /&gt;&lt;br /&gt;Things are going well so far, many more things need to be done but the algorythyms for determining the score value of hands, which will be used to determine the winner of the hands are well underway.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-5380863636351887269?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/08/work-continues.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-3466513016402874165</guid><pubDate>Wed, 20 Aug 2008 20:50:00 +0000</pubDate><atom:updated>2008-08-20T13:57:01.530-07:00</atom:updated><title>Check for Quads, Full house</title><description>I am re-working some of the code, and I created a couple new classes to help me determine if someone has some of the rank based hands. Checking for four of a kind was relatively easy, checking for a full house was a little tricky.&lt;br /&gt;I expect checking for three of a kind to be easy, and two pair to be a bit tricky.&lt;br /&gt;&lt;br /&gt;Regardless, four of a kind and full house are now being checked for. You will also notice a score that has been attached to each hand. &lt;br /&gt;&lt;br /&gt;The score will be used, in combination with the type of hand to determine how good the hand is. So a four of a kind with a score of 13 would still beat a full house of score 1013. Four of a kind with a score of 13 should be 4 kings, full house of score 1013 shoudl be 10's over kings 1310 would be kings over 10's. &lt;br /&gt;&lt;br /&gt;The app is coming along nicely, comments are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-3466513016402874165?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/08/check-for-quads-full-house.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-1554799277226349074</guid><pubDate>Wed, 13 Aug 2008 21:52:00 +0000</pubDate><atom:updated>2008-08-13T14:55:53.777-07:00</atom:updated><title>Turn and River</title><description>I decided the next thing to get working would be to get the turn and river working. Also I put in some smart enabling/disabling of the buttons to help focus the user on what he/she should be allowed to do from that point on.&lt;br /&gt;&lt;br /&gt;I have managed to write this application in such a way that it should (*fingers crossed) be relatively simple to start adding logic to test for the other hand types, also I made it so that it should (*) be easy to add more players as well.&lt;br /&gt;&lt;br /&gt;My goal is to have it so that you can run a bunch of test hands to see how often one will will win over another hand. You can change any of the user's hands to whatever you want, and you can run simulations to see what the result will be.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-1554799277226349074?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/08/turn-and-river.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4460200953899260582.post-1026258381808911642</guid><pubDate>Tue, 12 Aug 2008 16:46:00 +0000</pubDate><atom:updated>2008-08-12T09:57:07.416-07:00</atom:updated><title>First Pre-demo release</title><description>Welcome to the Silverlight Texas Holdem Hand Analyzer project. Eventually I hope to have a better name for the project :).&lt;br /&gt;&lt;br /&gt;I started this project as a way to learn the Silverlight architecture, and while playing around with Silverlight I thought that maybe it would be a good idea to build something that people could use.&lt;br /&gt;&lt;br /&gt;It is a ways away from completion, but the basic engine is working, it currently checks for straights, and single pairs. And it will deal out hands to 2 players, and also deal the flop.&lt;br /&gt;&lt;br /&gt;Clicking on a card will move up to the next ranking card, unless a player already has that card.&lt;br /&gt;&lt;br /&gt;What is the purpose of this project?&lt;br /&gt;&lt;br /&gt;I'd like to create a easy to use web application that will allow a user to quickly and easily determine their odds in a given Texas Holdem situation, either before it happens or retroactively when looking back at something that happened, eventually it would be nice to have this application available on a hand-held internet ready device.&lt;br /&gt;&lt;br /&gt;I would love to read your comments, your comments will greatly influence which direction this project heads.&lt;br /&gt;&lt;br /&gt;You can see the very first version of the Hand Analyzer &lt;a href='http://www.potnut.com/pa/testpage.html'&gt;HERE&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4460200953899260582-1026258381808911642?l=www.potnut.com%2Fblog%2Fblog.html'/&gt;&lt;/div&gt;</description><link>http://www.potnut.com/blog/2008/08/welcome_870.html</link><author>noreply@blogger.com (Jay)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>