CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-asciimatics

A cross-platform package to replace curses (mouse/keyboard input & text colours/positioning) and create ASCII animations

81

1.32x
Overview
Eval results
Files

task.mdevals/scenario-1/

ASCII Art Kaleidoscope Display

Create a Python program that displays a kaleidoscope effect in the terminal. A kaleidoscope creates rotational symmetry by mirroring a base pattern multiple times around a central point.

Requirements

Your program should:

  1. Create a base ASCII art pattern to use as the source for the kaleidoscope (e.g., text rendered as ASCII art, a simple shape, or any pattern)
  2. Apply a kaleidoscope transformation to create rotational symmetry from the base pattern
  3. Display the kaleidoscope in the terminal
  4. Animate the kaleidoscope by rotating it continuously
  5. Run the animation for at least 100 frames before exiting

The program should be runnable from the command line as python kaleidoscope_demo.py.

Implementation

Create a file kaleidoscope_demo.py that implements the kaleidoscope display.

Test Cases

  • When run with python kaleidoscope_demo.py, the program displays an animated kaleidoscope pattern in the terminal @test
  • The kaleidoscope displays rotational symmetry derived from a base pattern @test
  • The animation runs for at least 100 frames @test

Dependencies { .dependencies }

asciimatics { .dependency }

Provides terminal graphics and animation support for creating kaleidoscope effects with rotational symmetry.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-asciimatics

tile.json