scene.org File Archive

File download

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

File size:
19 404 bytes (18.95K)
File date:
2022-12-30 11:32:13
Download count:
all-time: 7

Preview

  • file_id.diz 653B
  • vc3_22_python.png 20.21K
  • vc3_22_python.py 93B

file_id.diz

KeyJ's Python Star

Author:   KeyJ / TRBL
Category: Christmas Challenge
System:   newschool PC
Language: Python
Len source code: 93 bytes
Len exe file:    n/a
Len code only:   n/a

Instructions:
- requires Python 3.10 or newer
- run with (Linux):
  $ python3 vc3_22_python.py
- run with (Windows):
  > py -3 vc3_22_python.py

Description:
Uses a parametric description of the star shape with a lot of min(), max() and
abs() magic, abuse of booleans as integers etc.

Comments:
I know, Python isn't exactly considered "vintage", but I'm currently doing a
lot of Python code golf for Advent of Code anyway, so it was just the most
natural thing to do ...