Archives

A Scriptable Equity Calculator

For all of your programming poker players out there, yesterday I made the Poker Sleuth Equity Calculator scriptable with bindings for C/C++, C#, and Python.

If you have easy_install or pip set up for Python, you can just do “easy_install pokersleuth”. It requires a 32-bit version of Python for Windows.

As an example, to compute the odds of winning when you have a pair of Jacks, your opponent has the Ace and 5 of diamonds, and the board cards are the 3 of diamonds, 5 of clubs, and 9 of diamonds:

>>> import pokersleuth
>>> pokersleuth.calculate_equity('3d5c9d', ('JJ', 'Ad5d')
[0.48225, 0.51775]

Share

New Dietary Guidelines for Americans from the USDA

The USDA released their new nutritional guidelines (updated every 5 years). I thought it was interesting to read directly from the source, rather than filtered through the media.

For those with only a little time, you might just want to read the executive summary.

The full report contains more detailed information, including their methodology and links to the supporting evidence used to formulate the guidelines, as well as information on particular food groups (protein, carbs, etc.).

A few things that I found interesting:

Potassium reduces the effect that salt has on blood pressure. Go bananas!

Share