<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 3BetLab</title>
    <description>The latest articles on DEV Community by 3BetLab (@3betlab).</description>
    <link>https://dev.to/3betlab</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4224825%2Fc67dde5a-4487-4385-b9f5-67795029152b.jpg</url>
      <title>DEV Community: 3BetLab</title>
      <link>https://dev.to/3betlab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/3betlab"/>
    <language>en</language>
    <item>
      <title>Deduplicating event feeds: name and start time are not an event ID</title>
      <dc:creator>3BetLab</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:40:54 +0000</pubDate>
      <link>https://dev.to/3betlab/deduplicating-event-feeds-name-and-start-time-are-not-an-event-id-587h</link>
      <guid>https://dev.to/3betlab/deduplicating-event-feeds-name-and-start-time-are-not-an-event-id-587h</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: The draft and sample SQL were generated with AI.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A calendar lists “Daily Turbo” at 18:00. An hour later the provider shifts it to 18:20. If your key is &lt;code&gt;(title, start_time)&lt;/code&gt;, the update looks like a new event. If you drop the time from the key, tomorrow’s “Daily Turbo” may overwrite today’s.&lt;/p&gt;

&lt;h2&gt;
  
  
  Distinguish identity, revision and display
&lt;/h2&gt;

&lt;p&gt;A reliable identifier is the provider’s occurrence ID, scoped to the namespace where it is unique. A recurring-series ID identifies a template, not one running of the tournament. If the provider has no reliable occurrence ID, don’t silently pretend a name and a clock time can supply one.&lt;/p&gt;

&lt;p&gt;Use a separate revision to decide whether an update is newer. Receipt time tells you when you saw a message, not whether it supersedes another one. If the provider documents a monotonically increasing revision per occurrence, an upsert can enforce that ordering:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;event_occurrence&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source_namespace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;source_occurrence_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;revision&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;starts_at&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;CONFLICT&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source_namespace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;source_occurrence_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;DO&lt;/span&gt; &lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt;
  &lt;span class="n"&gt;revision&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;revision&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;starts_at&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;starts_at&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;revision&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;event_occurrence&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;revision&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Import revision 12 twice and you still have one row. Import revision 11 after 12 and a reschedule cannot roll back. If revision 13 cancels the event, retain that cancellation state instead of deleting the row: otherwise, a late revision 12 could insert the event again. If two messages carry the same revision but different content, flag the conflict.&lt;/p&gt;

&lt;p&gt;A public calendar and a live lobby may use different IDs for the same occurrence. Store both identities and map them to a canonical listing only when you have an explicit cross-reference or have verified the match. A normalized title and a narrow time window can suggest a candidate, but shouldn’t merge it automatically.&lt;/p&gt;

&lt;p&gt;Test a duplicate, a late older revision, a moved start time, two distinct events with the same title and time, and a cancellation followed by a retry. Also check that a partial page doesn’t cancel an event simply by omitting it.&lt;/p&gt;

&lt;p&gt;I develop the &lt;a href="https://3betlab.com/tools/en/tournaments-now/" rel="noopener noreferrer"&gt;3BetLab tournament finder&lt;/a&gt;, where tournament cards link back to published sources. The SQL illustrates an ingestion pattern, not the production schema.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>database</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>Importing local event times in Java without guessing the time zone</title>
      <dc:creator>3BetLab</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:39:41 +0000</pubDate>
      <link>https://dev.to/3betlab/importing-local-event-times-in-java-without-guessing-the-time-zone-25i7</link>
      <guid>https://dev.to/3betlab/importing-local-event-times-in-java-without-guessing-the-time-zone-25i7</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: The draft and sample code were generated with AI.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A feed sends &lt;code&gt;2026-11-01T01:30&lt;/code&gt; and calls it “New York time.” On that date, New York’s clocks go back, so 01:30 happens twice. The timestamp could mean &lt;code&gt;05:30Z&lt;/code&gt; or &lt;code&gt;06:30Z&lt;/code&gt;. An hour is enough to ruin a reminder or send a user to an event at the wrong time.&lt;/p&gt;

&lt;p&gt;Use an explicit offset alone if that’s all the feed provides: &lt;code&gt;OffsetDateTime.parse(raw).toInstant()&lt;/code&gt;. For a local timestamp, use the provider’s documented zone, not the server’s or viewer’s. When the feed provides both an offset and a zone, validate that the offset actually applies to that local time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="nc"&gt;Instant&lt;/span&gt; &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;LocalDateTime&lt;/span&gt; &lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;ZoneId&lt;/span&gt; &lt;span class="n"&gt;zone&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;ZoneOffset&lt;/span&gt; &lt;span class="n"&gt;supplied&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;offsets&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;zone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getRules&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getValidOffsets&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;supplied&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="k"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;offsets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;contains&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;supplied&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toInstant&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;supplied&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;supplied&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="k"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;offsets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;size&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toInstant&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;offsets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;IllegalArgumentException&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Unresolvable event time: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;local&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;zone&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Java’s &lt;a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/zone/ZoneRules.html" rel="noopener noreferrer"&gt;zone rules&lt;/a&gt; distinguish normal times, gaps and overlaps. The method deliberately rejects gaps and overlaps unless a real offset disambiguates the latter.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;America/New_York&lt;/th&gt;
&lt;th&gt;Supplied offset&lt;/th&gt;
&lt;th&gt;Expected result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;2026-03-08T02:30&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Reject: skipped hour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;2026-11-01T01:30&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Reject: repeated hour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;2026-11-01T01:30&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-05:00&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;2026-11-01T06:30Z&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep the raw timestamp and provider zone alongside the instant so you can explain what was imported. If the event means “every Sunday at 19:00 local,” preserve the recurrence and its zone. Adding seven days to a UTC instant is not equivalent to keeping the same wall-clock time across a clock change.&lt;/p&gt;

&lt;p&gt;Only at rendering should the viewer’s zone enter the calculation. I develop the &lt;a href="https://3betlab.com/tools/en/tournaments-now/" rel="noopener noreferrer"&gt;3BetLab tournament finder&lt;/a&gt;, which shows event times in the viewer’s zone. The conversion above is illustrative, not production code.&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>softwaredevelopment</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Test a seven-card poker evaluator with invariants, not just famous hands</title>
      <dc:creator>3BetLab</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:37:24 +0000</pubDate>
      <link>https://dev.to/3betlab/test-a-seven-card-poker-evaluator-with-invariants-not-just-famous-hands-5akg</link>
      <guid>https://dev.to/3betlab/test-a-seven-card-poker-evaluator-with-invariants-not-just-famous-hands-5akg</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: This draft was generated with AI. The test cases below can be reproduced without playing for money.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A royal flush fixture tells you very little. An implementation can pass it while mishandling the low ace, reading only the first five cards, or using suits as a tiebreaker. Known examples still matter, but valid transformations let you check many more inputs without working out each answer by hand.&lt;/p&gt;

&lt;p&gt;Separate the evaluator from the equity calculator. A Hold’em evaluator ranks a known seven-card set using its strongest five cards. An equity calculator supplies possible missing community cards, compares each player’s rank and aggregates the outcomes. Test the ranking layer first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three transformations that should preserve meaning
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Permute card order.&lt;/strong&gt; A seven-card set and any reordered copy must produce the same rank. Use a fixed test seed so failures are replayable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rename suits bijectively.&lt;/strong&gt; Apply one consistent permutation of all four suits. Changing the suit of individual cards independently does not preserve this property.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swap players on a complete board.&lt;/strong&gt; A win becomes a loss; a tie stays a tie. Use nine distinct cards.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An implementation that always returns “tie” could pass all three. Pair the invariants with an independent, slower reference: enumerate the 21 five-card subsets, rank them with a simple classifier, and take the strongest. Write that classifier independently; sharing the optimized evaluator’s straight detector could let the same bug pass both sides.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seed the suite with edge cases
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ace-low straight:&lt;/strong&gt; A♣ 2♦ 3♠ 4♥ 5♣ K♦ Q♥ is five-high. Replace Q♥ with 6♥ and it becomes six-high.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two triplets:&lt;/strong&gt; A♣ A♦ A♥ K♣ K♦ K♥ 2♠ makes aces full of kings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The board plays:&lt;/strong&gt; board A♣ K♦ Q♠ J♥ T♣; hole cards 2♠ 3♠ versus 8♦ 9♦. Both players have the same ace-high straight.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The last example can serve as a black-box check in the &lt;a href="https://3betlab.com/tools/en/equity/" rel="noopener noreferrer"&gt;3BetLab equity calculator&lt;/a&gt;, a tool I develop. Enter the complete board and both hands. The tie rate should be 100%; each player’s pot share should be 50%. Separating those two numbers catches a different family of mistakes from hand ranking.&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>softwareengineering</category>
      <category>testing</category>
    </item>
    <item>
      <title>Parsing PokerStars and GGPoker hand histories in TypeScript, entirely client side</title>
      <dc:creator>3BetLab</dc:creator>
      <pubDate>Tue, 03 Nov 2026 18:32:55 +0000</pubDate>
      <link>https://dev.to/3betlab/parsing-pokerstars-and-ggpoker-hand-histories-in-typescript-entirely-client-side-529</link>
      <guid>https://dev.to/3betlab/parsing-pokerstars-and-ggpoker-hand-histories-in-typescript-entirely-client-side-529</guid>
      <description>&lt;p&gt;I run a poker trainer, and the most requested feature was "show me my mistakes in real games". That means reading hand history files, the plain text logs poker sites write for every hand. I wanted to do it without uploading anyone's files, so everything below runs in the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a hand history looks like
&lt;/h2&gt;

&lt;p&gt;Each hand is a block of text: a header with the hand id, stakes and date, the seats with stacks, then actions street by street, then the summary. PokerStars and GGPoker are close, but not identical. GGPoker hides opponents' cards unless they reach showdown, tournament headers carry the level and ante, and some rooms post a big blind ante as a single line.&lt;/p&gt;

&lt;h2&gt;
  
  
  The approach that worked
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Split the file into hands by the header line, not by blank lines. The header is the one thing every hand reliably starts with.&lt;/li&gt;
&lt;li&gt;Parse seats first and build a map from player name to seat. Names can contain spaces and odd characters, so anchor the regex on the stack in parentheses at the end of the seat line instead of splitting on the first colon.&lt;/li&gt;
&lt;li&gt;Convert everything to big blinds right away. Tournaments use chips with growing blinds, cash games use money, and comparing a decision across hands only makes sense in BB.&lt;/li&gt;
&lt;li&gt;Put antes into the pot before the first action. It changes pot odds more than people expect, especially at 10 BB.&lt;/li&gt;
&lt;li&gt;Skip what you can't model and say why. Heads-up, run it twice and straddles are skipped with a reason shown to the user, which is better than a silently wrong verdict.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Equity without a server
&lt;/h2&gt;

&lt;p&gt;Postflop equity is a Monte Carlo run against an opponent range that narrows as they act: preflop raise, call, bet, check. About 1,500 iterations per spot are enough for the rough verdicts a learner needs, and it stays fast on a phone. For short stacked tournament spots the review switches to Nash push/fold charts instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;p&gt;Write the fixture files first. Formats differ in tiny ways (currency symbols, thousands separators, how antes are posted), and a test per format caught more bugs than anything else.&lt;/p&gt;

&lt;p&gt;You can try it on demo hands with a free account: &lt;a href="https://3betlab.com/app?tab=analyzer" rel="noopener noreferrer"&gt;3-Bet Lab hand review&lt;/a&gt;. The &lt;a href="https://3betlab.com/tools/en/" rel="noopener noreferrer"&gt;pot odds and equity calculators&lt;/a&gt; work without one.&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
