-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi,
Great solver!
Just wondering whether it's worth revising hasSolution, so instead of:
for tileNumber in range(len(tiles)): #Loop through all the tiles, which produces...
shuffle the list first to reduce overuse of tiles with lower index, for example:
tileList = list(range(len(tiles)))
random.shuffle(tileList)
for tileNumber in tileList: #Loop through all the tiles
which produces...
Note: this is mostly apparent in situations where the number of available tiles for each type of tile is unconstrained.
Metadata
Metadata
Assignees
Labels
No labels

