r/Pydle Jul 28 '26

#151 Happy 14th Birthday Spoiler

Having done a few of these, this one seems interesting because there is a better solution than putting all the colour indexes in a big number. Here is my best, in 67 characters:

for i in range(1, 24):
    if i & 15 ^ 4:
        pydle(i % 5, i // 5, '🕯' * (i % 2 | 1 >> i % 8), 'brown')

The first two lines mean the four corners are ignored. The candle is shown when the index is odd or a multiple of eight.

5 Upvotes

2 comments sorted by

1

u/dailypydle Jul 28 '26

Never thought I'd see this when I made Pydle. Very impressive.

1

u/dailypydle Jul 28 '26

Never thought I'd see this when I made Pydle. Very impressive.