Top-rated recipes by DR#m not http://code.activestate.com/recipes/users/2381373/top/2005-04-17T22:26:35-07:00ActiveState Code RecipesPrimitive game (Python)
2005-04-17T22:26:35-07:00DR#m nothttp://code.activestate.com/recipes/users/2381373/http://code.activestate.com/recipes/410172-primitive-game/
<p style="color: grey">
Python
recipe 410172
by <a href="/recipes/users/2381373/">DR#m not</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>A very-very simple dice game:
two persons("You" and "CPU") are dropping dices.
If someone scores 17 during dropping dices, he wins.
Any doubts are interpreted to a humans<code>side.
(i</code>m too lasy to add draw here)
And one more. Rules say- "if someone drops 3 same dices at the beginning, he wins."
this is not realized in game, too. (but the probability of this is just about 1.4%)</p>
Pascal`s triangle (Python)
2005-03-20T21:56:49-08:00DR#m nothttp://code.activestate.com/recipes/users/2381373/http://code.activestate.com/recipes/392153-pascals-triangle/
<p style="color: grey">
Python
recipe 392153
by <a href="/recipes/users/2381373/">DR#m not</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
</p>
<p>this script prints a few lines of Pascal`s triangle ;-)</p>