Skip to content

Commit

Permalink
Add crossword quality configuration options
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasvana10 committed May 6, 2024
1 parent 3f507e9 commit e60f57b
Show file tree
Hide file tree
Showing 194 changed files with 11,837 additions and 11,453 deletions.
2 changes: 1 addition & 1 deletion crossword_puzzle/babel.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[python: src/**.py]
[python: **.py]
[jinja2: **/templates/**.html]
1 change: 1 addition & 0 deletions crossword_puzzle/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ language = en
launches = 0
cword_browser_opened = 0
webapp_port = 5000
cword_quality = average

15 changes: 14 additions & 1 deletion crossword_puzzle/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,27 @@ class CrosswordRestrictions:
# language


class CrosswordQuality:
QUALITY_MAP: dict[int, str] = {
"terrible": 0.05,
"poor": 0.25,
"average": 0.5,
"great": 0.7,
"perfect": 1.05,
}


class DimensionsCalculation:
"""Values that aid with scaling whitespace and providing an appropriate
side length for the grid. Do not modify.
"""

WHITESPACE_SCALAR: float = 1.9
DIMENSIONS_CONSTANT: int = 1


class BaseEngStrings:
BASE_ENG_APPEARANCES: list[str] = ["light", "dark", "system"]
BASE_ENG_CWORD_QUALITIES: list[str] = [
"terrible", "poor", "average", "great", "perfect"
]
Binary file modified crossword_puzzle/locales/af/LC_MESSAGES/messages.mo
Binary file not shown.
Loading

0 comments on commit e60f57b

Please sign in to comment.