The purpose of this challenge is to write a shortest code to render ASCII christmas trees (forest?). You may find examples in the tree.png
and in check
directory
Chars: *#$H^
and space
Colors: (http://misc.flogisoft.com/bash/tip_colors_and_formatting)
GREEN = '\033[32m'
RED = '\033[91m'
WHITE = '\033[97m'
YELLOW = '\033[93m'
- Every line ends with
\n
- The solution should consist of only 1 file
- Other scripts (online/from disk) and libs are not allowed (except stdlib)
- Every char (except space) starts with the color code (see technicals above)
- Arguments are always positive integers
cd check/
./check.sh interpreter patch_to_file_with_code
./check.sh python ~/tree/xxx_tree.py
MERRY CHRISTMAS size: 233 /home/xxx/tree/xxx_tree.py \r count: 0
- 220b Daniel O.
- 233b Pyszo
- 251b Michał M.
- 264b Marcin M.
- 291b Patryk P.
- 305b Krzysiu M.
- 334b Zeulus
- 345b Marcin Wi.
- 255b Pyszo
- 285b Krzysiu M.
- 339b Witek G.
- 594b Urug