Skip to content

Commit

Permalink
to_usiとto_csaのrtypeをstrからbytesに修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TadaoYamaoka committed Jan 17, 2024
1 parent e0a2028 commit eee64e3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Binary file modified .doctrees/cshogi.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
8 changes: 6 additions & 2 deletions _modules/cshogi/KIF.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,13 @@ <h1>Source code for cshogi.KIF</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">moves</span><span class="p">)</span> <span class="o">-</span> <span class="nb">len</span><span class="p">(</span><span class="n">comments</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
<span class="n">comments</span><span class="o">.</span><span class="n">extend</span><span class="p">([</span><span class="kc">None</span><span class="p">]</span><span class="o">*</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">moves</span><span class="p">)</span> <span class="o">-</span> <span class="nb">len</span><span class="p">(</span><span class="n">comments</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span><span class="p">))</span>
<span class="k">if</span> <span class="n">line</span><span class="p">[:</span><span class="mi">2</span><span class="p">]</span> <span class="o">==</span> <span class="s2">&quot;**&quot;</span><span class="p">:</span>
<span class="n">comments</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">line</span><span class="p">[</span><span class="mi">2</span><span class="p">:])</span>
<span class="n">comment</span> <span class="o">=</span> <span class="n">line</span><span class="p">[</span><span class="mi">2</span><span class="p">:]</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">comments</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">line</span><span class="p">[</span><span class="mi">1</span><span class="p">:])</span>
<span class="n">comment</span> <span class="o">=</span> <span class="n">line</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">comments</span><span class="p">)</span> <span class="o">==</span> <span class="nb">len</span><span class="p">(</span><span class="n">moves</span><span class="p">):</span>
<span class="n">comments</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span> <span class="o">+</span> <span class="n">comment</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">comments</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">comment</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">header_comments</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">line</span><span class="p">[</span><span class="mi">1</span><span class="p">:])</span>
<span class="k">elif</span> <span class="s1">&#39;:&#39;</span> <span class="ow">in</span> <span class="n">line</span><span class="p">:</span>
Expand Down
4 changes: 2 additions & 2 deletions cshogi.html
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@ <h1>cshogi package<a class="headerlink" href="#cshogi-package" title="Permalink
<dd class="field-even"><p>The CSA representation of the move.</p>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p>str</p>
<dd class="field-odd"><p>bytes</p>
</dd>
</dl>
</dd></dl>
Expand All @@ -1636,7 +1636,7 @@ <h1>cshogi package<a class="headerlink" href="#cshogi-package" title="Permalink
<dd class="field-even"><p>The USI representation of the move.</p>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p>str</p>
<dd class="field-odd"><p>bytes</p>
</dd>
</dl>
</dd></dl>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit eee64e3

Please sign in to comment.