-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from vil02/28-make-the-input-of-puzzle_generat…
…orcreate-human-friendly feat: make input of `create_puzzle.create` more human friendly
- Loading branch information
Showing
4 changed files
with
100 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
from puzzle_generator.create_puzzle import create | ||
|
||
_PUZZLE = { | ||
"str": "What is 1+1?", | ||
"pass": "2", | ||
"rest": { | ||
"str": "What is my name?", | ||
"pass": "Piotr", | ||
"rest": {"str": "Congratulations, you solved this quiz!"}, | ||
}, | ||
} | ||
_PUZZLE = [ | ||
"What is 1+1?", | ||
"2", | ||
"What is my name?", | ||
"Piotr", | ||
"Congratulations, you solved this quiz!", | ||
] | ||
|
||
print(create(_PUZZLE)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "puzzle-generator" | ||
version = "0.5.3" | ||
version = "0.6.0" | ||
description = "Generates python code representing a puzzle" | ||
authors = ["piotr.idzik <[email protected]>"] | ||
readme = "./puzzle_generator/README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters