@@ -318,6 +318,8 @@ def __init__( # noqa: PLR0913
318318 iterations : int ,
319319 easy_cross : bool ,
320320 show_cube : bool ,
321+ linear : bool ,
322+ no_color : bool ,
321323 output_format : str ,
322324 seed : str ,
323325 rng : Random ,
@@ -331,6 +333,8 @@ def __init__( # noqa: PLR0913
331333 iterations: The number of random moves per scramble (0 for auto).
332334 easy_cross: Whether to generate scrambles with easy crosses.
333335 show_cube: Whether to display visual cube representations.
336+ linear: Wether to display the cube in linear.
337+ no_color: Do not use color to display the cube.
334338 output_format: Output format ('terminal' or 'markdown').
335339 seed: Seed used for the RNG.
336340 rng: Random number generator.
@@ -341,6 +345,8 @@ def __init__( # noqa: PLR0913
341345 self .iterations = iterations
342346 self .easy_cross = easy_cross
343347 self .show_cube = show_cube
348+ self .linear = linear
349+ self .no_color = no_color
344350 self .output_format = output_format
345351 self .seed = seed
346352 self .rng = rng
@@ -413,23 +419,21 @@ def run_markdown(self) -> None:
413419 f'**Generated:** { timestamp } ' ,
414420 cube_size_str ,
415421 f'**Count:** { self .scrambles } ' ,
416- '**Parameters:**' ,
417422 ))
418423 params = []
419424
420425 if self .seed :
421426 params .append (f'- Seed: { self .seed } ' )
422- else :
423- params .append ('- Seed: Random' )
424427
425428 if self .iterations :
426429 params .append (f'- Iterations: { self .iterations } ' )
427- else :
428- params .append ('- Iterations: Auto' )
429430
430- params .append (f'- Easy Cross: { "Yes" if self .easy_cross else "No" } ' )
431+ if self .easy_cross :
432+ params .append ('- Easy Cross: Yes' )
433+
434+ if params :
435+ output_lines .extend (['**Customization:**' , * params ])
431436
432- output_lines .extend (params )
433437 output_lines .extend (('' , '---' , '' ))
434438
435439 # Generate scrambles
@@ -459,19 +463,27 @@ def run_markdown(self) -> None:
459463 )
460464 output_lines .append (scrambled_str )
461465
466+ output_lines .append ('' )
467+
462468 # Cube visualization if requested
463469 if self .show_cube :
464- output_lines .extend (( '' , ' ### Cube Visualization', '' ) )
470+ output_lines .append ( ' ### Cube Visualization' )
465471
466- cube_emoji = cube .display (orientation = 'UF' , facelet = 'emoji' )
472+ cube_display = cube .display (
473+ orientation = 'UF' ,
474+ facelet = 'no-color' if self .no_color else 'emoji' ,
475+ mode = 'linear' if self .linear else '' ,
476+ )
467477 output_lines .extend ((
468478 '```' ,
469- cube_emoji .rstrip ('\n ' ),
479+ cube_display .rstrip ('\n ' ),
470480 '```' ,
471481 '' ,
472482 ))
473483
474- output_lines .extend (('---' , '' ))
484+ output_lines .append ('---' )
485+ if counter < self .scrambles - 1 :
486+ output_lines .append ('' )
475487
476488 # Print the complete markdown document
477489 print ('\n ' .join (output_lines )) # noqa: T201
0 commit comments