Update board_randomizer and dice file

This commit is contained in:
2022-08-26 19:37:32 -04:00
parent 6d6d56d1cb
commit 79486d4217
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@ from random import randint, shuffle
from math import sqrt
def read_dice_file(path):
# TODO: Factor in 'qu' die face
'''Return list of die strings from file ignoring all comments (#)'''
with open(path, 'r+', encoding="utf-8") as file:
return [''.join(line.rstrip().split(',')) for line in file.readlines() if line[0] != "#"]
Regular → Executable
+1 -2
View File
@@ -1,5 +1,4 @@
front,right,back,left,top,bottom (start with 'one of' the first alphabetical chars
-----------
# front,right,back,left,top,bottom (start with 'one of' the first alphabetical chars
a,h,s,p,o,c
e,r,l,i,x,d
a,g,a,e,e,a