<table><tr><td style="">shlomif added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18566">View Revision</a></tr></table><br /><div><div><p>Hi!</p>

<p>I found out that kpat has a command line range solving mode. Here are the results of the first 5,000 deals:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Old           New             Count
---             ---             -----
lost            lost            2291
lost            unknown         462
lost            won             930
unknown         lost            9
unknown         unknown         56
unknown         won             38
won             unknown         13
won             won             1201</pre></div>

<p>They were generated using:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="bash" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span class="ch">#! /bin/bash</span>
<span style="color: #74777d">#</span>
<span style="color: #74777d"># analyze.bash</span>
<span style="color: #74777d"># Copyright (C) 2019 Shlomi Fish <shlomif@cpan.org></span>
<span style="color: #74777d">#</span>
<span style="color: #74777d"># Distributed under terms of the MIT license.</span>
<span style="color: #74777d">#</span>


filt2<span style="color: #aa2211">()</span>
<span style="color: #aa2211">{</span>
    grep -E <span style="color: #766510">'^[1-9]'</span> <span class="p">|</span> head -5000
<span style="color: #aa2211">}</span>
filt<span style="color: #aa2211">()</span>
<span style="color: #aa2211">{</span>
    filt2 <span class="p">|</span> perl -lanE <span style="color: #766510">'say $F[1]'</span>
<span style="color: #aa2211">}</span>
<span style="color: #304a96">echo</span> <span style="color: #766510">$'Old\t\tNew\t\tCount'</span>
<span style="color: #304a96">echo</span> <span style="color: #766510">$'Old\t\tNew\t\tCount'</span> <span class="p">|</span> perl -lpE <span style="color: #766510">'s/\w/-/g'</span>
paste <<span style="color: #aa2211">(</span>< old-golfs.txt filt<span style="color: #aa2211">)</span> <<span style="color: #aa2211">(</span>< new-golfs.txt filt<span style="color: #aa2211">)</span> <span class="p">|</span> sort <span class="p">|</span> uniq -c <span class="p">|</span> perl -lanE <span style="color: #766510">'say "$F[1]\t\t$F[2]\t\t$F[0]"'</span></pre></div>

<p>The new solver (bh-solver) solves more deals including ones that were reported as impossible. It seems to be slower in bulk mode though, but it is fast enough for solving a single deal.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R410 KPatience</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18566">https://phabricator.kde.org/D18566</a></div></div><br /><div><strong>To: </strong>shlomif, KDE Games<br /><strong>Cc: </strong>aacid, kde-games-devel<br /></div>