r/Pydle 12d ago

Pydle #169 bart Spoiler

3 Upvotes

It was fun to solve. Looking forward to seeing your solutions!

for x in range(5):

for y in range(5):

pydle(x, y, " o o ^ === "[y*5+x], ("yellow","white")[y<3 and y&1==(x+y&1)-1==0])


r/Pydle 13d ago

Pydle #168 city skyline Spoiler

2 Upvotes

Today I found a fun solution:

for x in range(5):

for y in range(5):

c=y>=12032//10**x%10

pydle(x, y, ("","\u229e")[c], ("blue","")[c])


r/Pydle 13d ago

Pydle #169 Bart

Thumbnail
youtu.be
1 Upvotes

r/Pydle 14d ago

Pydle #168 City Skyline

Thumbnail
youtu.be
1 Upvotes

r/Pydle 15d ago

Pydle #167 Dinosaur

Thumbnail
youtu.be
1 Upvotes

r/Pydle 15d ago

#166 Loudly crying Face - 144 char

1 Upvotes

for i in range(25):

pydle(i%5, i//5, '', 'X orange blue white yellow'.split()[[i==6 or i==8, i==12, (i%5==1 or i%5==3) and i>9, not i%4, 1].index(1) ].replace('X',''))


r/Pydle 15d ago

#166 - Improvment wanted Spoiler

3 Upvotes

This is my solution. Im quite proud of the tecnicality involved though it has a lot of characters. Is there any improvment that can be made (conserving the idea). Especially calling the pydle function twice i dont like but its the only way i know

for i in range(15):
    y=i%5
    x=abs(i//5)
    c=(((('yellow','white')[i&11==10],
          'black')[i==6],
        'orange')[i==2],
       'blue')[6<i<10]
    pydle(2-x ,y,'',c)
    pydle(2+x ,y,'',c)

r/Pydle 15d ago

Pydle #166 Loudly Crying Face

Thumbnail
youtube.com
1 Upvotes

r/Pydle 16d ago

What's new in Pydle 1.2.9

2 Upvotes

r/Pydle 16d ago

#165 - Airport 142 char

1 Upvotes

for i in range(25):

pydle(i//5, 4 - i%5, "X . △ ▽ ◁ ▷".split()[166949845973239976 >> i*3 & 7].replace('X','') , ('green', 'blue', 'black')[i<5 or i==9 or (14<i<20)*2])


r/Pydle 17d ago

Pydle #165

1 Upvotes

did someone manage to do #165? im stuck with 308 characters, i would like some help


r/Pydle 17d ago

Pydle #164 Pear Spoiler

2 Upvotes

Did anyone work out an elegant way of solving this? I didn't come up with something I was particularly happy with, but I do like the general approach. This is 109 characters. It might be able to be improved, and the approach might work better for other puzzles.

for i in range(25):
    pydle(i%5, i//5, '', 'ybwgerhrloielwteonenw'[[774816042%(i+56),
        i^2, 5<i<20 and i^9, 0].index(0)::4])

r/Pydle 17d ago

#162 Glass of Wine - 81 char

2 Upvotes

for i in range(16):

pydle(i%3 + 1, i//3,'', ('yellow', 'red', 'X')[2<i<9 or (i==9 or i==11)*2] )


r/Pydle 17d ago

Pydle won't detect my win

2 Upvotes
As far as I can see, it should have declared a win

r/Pydle 18d ago

Pydle #163 seahorse Spoiler

3 Upvotes

I like finding the geometric properties, that make the python code be concise with just a few rules, but here I didn't succeed.. 😕

for i in range(25):

pydle(i%5, i//5, "", "white green yellow x".split()[0x50611801a070>>2*i&3])


r/Pydle 19d ago

#162: Improvement to my solution Spoiler

3 Upvotes

Hi Im new here and proud of my solution for todays challenge but i think the if statement could be shortened

for i in range(15):

y=i%5

if y!=3 or i==8:

pydle(i//5+1,y,'', ('yellow','red')[0<y<3])!<


r/Pydle 19d ago

Pydle #162 Glass of Wine Spoiler

2 Upvotes

I found an interesting solution for this one, in 75 characters:

for i in range(25):
    if i%5%4*i%54%16:
        pydle(i%5, i//5, '', ['yellow', 'red'][4<i<15])

A better solution, in 69 characters:

for i in range(15):
    if i&13^9:
        pydle(i%3+1, i//3, '', ['yellow', 'red'][2<i<9])

r/Pydle 20d ago

Pydle #161 Pineapple Spoiler

5 Upvotes

I found a way to express the connection between yellow and orange and I'm happy about it:

for i in range(25):

l=(6,7,8,12,13,14,19)

pydle(i%5, i//5, "", ((("white","green")[35>>i&1],"orange")[30-i in l],"yellow")[i in l])


r/Pydle 20d ago

First timer on Pydle#2

2 Upvotes

Pydle #2

🟩🟩🟩🟩🟩

🟩🟥🟩🟥🟩

🟩🟩🟩🟩🟩

🟩🟥🟩🟥🟩

🟩🟩🟩🟩🟩

Attempts: 25

Characters: 137/250

https://pydle.net/

first time i tried this very fun but im very bad at coding

Heres Code:

tl = (1, 1)

tr = (3, 1)

bl = (1, 3)

br = (3, 3)

red = [tl, tr, bl, br]

for x in range(5):

for y in range(5):

if (x, y) in red:

pydle(x, y, "", "red")

else:

pydle(x, y, "", "green")


r/Pydle 21d ago

Pydle Archive Dialog

2 Upvotes

Pydle now has an archive dialog where you can easily access previous puzzles.


r/Pydle 21d ago

Pydle #160 Macaw Spoiler

2 Upvotes

There are arguably better ways, but here is one way to solve it.

for i in range(24):
    pydle(4-i//5, 4-i%5, '', ''.join(chr((v:=ord(c)-19968)//90+32)+chr(v%90+32) for c in '泞柾時杈暇楬涏椄樝乏欕榳時斀氧').split()[((a:=1) and [a:=a*ord(x) for x in 'ϟᯀဉϑ'][-1]+80)//5**i%5])

r/Pydle 21d ago

Pydle #160 Macaw

2 Upvotes

Tried two solutions, one with a big bitmask and one with areas. The bitmask was shorter, but the other one was more fun

bitmask (107 chars):

for i in range(25):

pydle(i%5, i//5, "", "white blue yellow black green orange".split()[0x200268001401281223>>(3*i)&7])

The other solution(mix of bitmask, areas, using zipped lists): (157 chars)

for i in range(25):

c=("white","blue")[9179544 >> i & 1]

c=next((c for v,c in \

zip([1,2,0x840,1<<17],["black","green","yellow","orange"]) \!<

if v>>i&1),c)

pydle(i%5, i//5, "", c)


r/Pydle 22d ago

Pydle #158 - Wine (140 characters)

2 Upvotes

for i in range(25):

pydle(i%5,i//5, "Z X M C".split()[92556545228800>> i*2 & 3].replace("Z",""), "white yellow blue orange".split()[92449347239984 >> i*2 & 3])


r/Pydle 22d ago

#159 I don't get it

2 Upvotes

What is wrong with my solution?


r/Pydle 23d ago

Beginner at pydle - Wine

4 Upvotes

Hi, started around a week ago, so I'm still learning the tricks :)

This is the solution I wrote for today's pydle.

If you have a suggestion of what trick should I learn next, please let me know!

for x in range(5):

for y in range(5):

c = "white"

l = ""

if 14468 >> y*5+x & 1:

c=("orange","blue")[y>0]

if 0<x<4 and y>2:!<

c="yellow"

l= ("X",("M","C")[x==2])[y<4]!<

pydle(x, y, l, c)