diff options
author | Christian Hodgden <chrhodgden@gmail.com> | 2024-06-28 20:16:15 +0000 |
---|---|---|
committer | Christian Hodgden <chrhodgden@gmail.com> | 2024-06-28 20:16:15 +0000 |
commit | 0b191763a375bdc51052e1629ca23db1d0397aee (patch) | |
tree | 5a07e24be16ff36eedbfac9eee94c04c80378ad6 /scripts | |
parent | c3571456b4f1fd9677766742b3912013235e24d7 (diff) |
clean up scripts
Diffstat (limited to 'scripts')
-rwxr-xr-x[-rw-r--r--] | scripts/dice.py | 0 | ||||
-rw-r--r-- | scripts/face_randomizer.py | 25 |
2 files changed, 0 insertions, 25 deletions
diff --git a/scripts/dice.py b/scripts/dice.py index 00bbd6f..00bbd6f 100644..100755 --- a/scripts/dice.py +++ b/scripts/dice.py diff --git a/scripts/face_randomizer.py b/scripts/face_randomizer.py deleted file mode 100644 index 60f53e5..0000000 --- a/scripts/face_randomizer.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python3 - -import random - -def dot(position, spots): - if position in spots: - return(' ') - else: - return('*') - -def printFace(val): - spots = list(range(1, 10)) - for _ in range(val): - spots.remove(random.choice(spots)) - face = '|' - for i in range(1, 10): - face += f'{dot(i, spots)}|' - if i % 3 == 0 and i != 9: - face += '\n|' - print(val, face, sep='\n') - -for i in range(0,8): - printFace(i) - - |