vil02 / puzzle_generator

Generates python code representing a puzzle
MIT License
5 stars 2 forks source link

Ensure that the output of `create` does not contain long lines #111

Open vil02 opened 1 week ago

vil02 commented 1 week ago

The output of create contains some very long lines. Modify the code in such a way, that each line of the output is at most 88 characters long.

How to see the problem

Generate and inspect any puzzle, for example by running

poetry run python3 examples/basic_usage.py > example_output.py

and opening the generated example_output.py file.

Testing strategy

Adding a line like

assert all(len(_) <= 88 for _ in in_puzzle.splitlines())

into _run_puzzle_str is a good start.

mpa-LHutchinson commented 1 week ago

Hi @vil02 , can you assign this issue to me? I'll get working on it as soon as I can today

vil02 commented 1 week ago

@mpa-LHutchinson: if you would like to discuss something more directly, feel free to e-mail me: vil02_puzzle_generator@10g.pl.