<coffee star>
Author: <Herpes / Sign>
Category: <Christmas Challenge>
System: <PC>
Language: <java-17-openjdk>
Len source code: <# 1.190 bytes>
Len exe file: <# 960 bytes>
Len code only: <# bytes> (valid for assembler only; length of executable without BASIC stub)
Instructions:
<java at.sign.starchallenge.Star>
<start it from shell - outside the package at/sign/starchallenge/; Prerequisite: java must be installed (preferably a version higher than 8); in the shell (preferably linux bash run) 'java at.sign.starchallenge.Star'>
Description:
<The star is encoded by inserting into an empty char-array
(which is initially filled with ascii blanks).
The offsets are 'hardcoded' to spare space and the
number of stars are given by the last parameter of the function 'mirr'
which copies the stars from the left AND from the right border of the
appropriate location determined by the offset.
The next 5 lines of the star are filled with the Arrays.fill-method.
Then the lower half of the star is vertically copied and printed to
the console ;-)>
Comments:
<I horribly overestimated my time budget - I started on 24th of December
and had all in all 1 hours to think about it for the Java thingy.
Haha, the brute force approach by just printing the star with
System.out.println() was almost better - so I rather went for the python
version.>