scene.org File Archive

File download

<root>­/­parties­/­2022­/­vccc22­/­christmas_star_challenge/herpes_linuxpc_java17_vc3-2022.zip

File size:
1 646 036 bytes (1.57M)
File date:
2022-12-30 11:32:13
Download count:
all-time: 4

Preview

  • at/ dir
  • at/sign/ dir
  • at/sign/starchallenge/ dir
  • at/sign/starchallenge/Star.class 960B
  • at/sign/starchallenge/Star.java 1.16K
  • code.png 1.15M
  • file_id.diz 1.32K
  • result.png 431.28K

file_id.diz

<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.>