summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-14 06:54:40 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 10:26:50 (GMT)
commit4b7f8fea3752c54b86777d31609be342aaaf64e3 (patch)
tree4754218abcdd93c09bd76fc4f4510be0627a9885
parent33cd3aafe45d24f5ac5671b26de6701e0256c42c (diff)
Knitting rules delivered random results (another unsorted set)
-rw-r--r--src/rulecode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rulecode.py b/src/rulecode.py
index 0972895..c06e7fd 100644
--- a/src/rulecode.py
+++ b/src/rulecode.py
@@ -769,7 +769,7 @@ class Knitting(RuleCode):
minSuit = min(suitCounts)
result = ''.join(
x for idx,
- x in enumerate(set(Tile.colors)) if suitCounts[idx] > minSuit)
+ x in enumerate(Tile.colors) if suitCounts[idx] > minSuit)
if len(result) == 2:
return result