mirror of
https://codeberg.org/cblanken/boggler.git
synced 2026-07-25 19:19:20 -04:00
Update board_randomizer and dice file
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user