Skip to content

Commit

Permalink
better text
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnDriscoll committed Oct 26, 2017
1 parent eec9f65 commit 76e019e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
Binary file modified docs/build/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/.doctrees/tutorial.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="index" title="Global index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="top" title="diceroll 2.4 Operations Manual" href="index.html" />
<generator object at 0x03506E68>
<generator object at 0x0372C918>

<script type="text/javascript">
DOCUMENTATION_OPTIONS.COLLAPSE_MODINDEX = true;
Expand Down
2 changes: 1 addition & 1 deletion docs/build/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="index" title="Global index" href="genindex.html" />
<link rel="search" title="Search" href="" />
<link rel="top" title="diceroll 2.4 Operations Manual" href="index.html" />
<generator object at 0x0349BA08>
<generator object at 0x035DC698>
<script type="text/javascript" src="_static/searchtools.js"></script>

</head>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/searchindex.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions docs/build/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ <h2>Rolling the Dice<a class="headerlink" href="#rolling-the-dice" title="Permal
<div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">die1</span> <span class="o">=</span> <span class="n">roll</span><span class="p">(</span><span class="s">&#39;1D6&#39;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">die2</span> <span class="o">=</span> <span class="n">roll</span><span class="p">(</span><span class="s">&#39;1d6&#39;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">dice</span> <span class="o">=</span> <span class="s">&#39;3D4+1&#39;</span>
<span class="gp">&gt;&gt;&gt; </span><span class="k">print</span> <span class="n">die1</span><span class="p">,</span> <span class="n">die2</span><span class="p">,</span> <span class="n">roll</span><span class="p">(</span><span class="n">dice</span><span class="p">)</span>
<span class="go">3, 2, 9</span>
<span class="gp">&gt;&gt;&gt; </span><span class="k">print</span> <span class="n">die1</span><span class="p">,</span> <span class="n">die2</span><span class="o">+</span><span class="mi">4</span><span class="p">,</span> <span class="n">roll</span><span class="p">(</span><span class="n">dice</span><span class="p">)</span>
<span class="go">3, 6, 9</span>
</pre></div>
<p>The return values from <tt class="docutils literal"><span class="pre">roll()</span></tt> are always integer.</p>
<p><em>New in version 2.2</em></p>
<p>Notice that the inputted string values can be upper or lower case. And note that the return values are integer.</p>
<p>Notice that the inputted string values can be upper or lower case.</p>
<p>The dice types to roll are:</p>
<blockquote>
D3, D4, D6, D8, D9, D10, D12, D20, D30, D100, D66, DD, FLUX, GOODFLUX, and BADFLUX</blockquote>
Expand Down
8 changes: 5 additions & 3 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ Those of you that have used dice rolling programs before will notice that someth
>>> die1 = roll('1D6')
>>> die2 = roll('1d6')
>>> dice = '3D4+1'
>>> print die1, die2, roll(dice)
3, 2, 9
>>> print die1, die2+4, roll(dice)
3, 6, 9

The return values from ``roll()`` are always integer.

*New in version 2.2*

Notice that the inputted string values can be upper or lower case. And note that the return values are integer.
Notice that the inputted string values can be upper or lower case.

The dice types to roll are:

Expand Down

0 comments on commit 76e019e

Please sign in to comment.