]> git.cworth.org Git - turbot/blobdiff - turbot/puzzle.py
puzzle_copy: Copy the solution list as well
[turbot] / turbot / puzzle.py
index abfe60b505308874109938f48f234cc2791c19a0..caf6cede14e0a86ea6e4020ee4abbfd2a8bed745 100644 (file)
@@ -357,4 +357,7 @@ def puzzle_copy(old_puzzle):
     if 'tags' in old_puzzle:
         new_puzzle['tags'] = old_puzzle['tags'].copy()
 
+    if 'solution' in old_puzzle:
+        new_puzzle['solution'] = old_puzzle['solution'].copy()
+
     return new_puzzle