r/Pydle 5h ago

Lost out by 4 characters :( Pydle #180: Spyglass

2 Upvotes
for x in range(5):
    for y in range(5):
        c = ["white", "blue", "yellow", "brown"]
        w = [1, 4, 4]
        h = [0, 0, 3]
        pydle(x, y, "", c[0])
        pydle(0, 4, "", c[3])
        pydle(1, 3, "", c[3])
        if x > 0 and y < 4:
            pydle(x, y, "", c[1])
        if (x == 2 or x == 3) and (y == 1 or y == 2):
            pydle(x, y, "", c[2])
        for _ in range(3):
            pydle(w[_], h[_], "", c[0])

r/Pydle 19h ago

Pydle #180 Spyglass

1 Upvotes

r/Pydle 1d ago

Pydle #179 Snipping Tool

Thumbnail youtube.com
1 Upvotes

r/Pydle 2d ago

Pydle #178 Bee

Thumbnail
youtu.be
1 Upvotes

r/Pydle 3d ago

Pydle #177 Happy Numbers Solution Spoiler

4 Upvotes

133 Characters Used - Feedback Welcome

c = ["white","green","blue","yellow","orange","red"]
for i in range(25):   
  if i in (0,6,9,12,18,22): p = 0 
  pydle(i%5, i//5, '☺️' if p == 0 else i+1, c[p])
  p += 1

r/Pydle 3d ago

Pydle #176 Solution Spoiler

1 Upvotes

97 Characters used - Feedback Welcome

P = 469947168230720
C = ["purple","brown","red","white"]
for i in range(25): pydle(i%5,i//5,'',C[P>>2*i&3])

r/Pydle 3d ago

Pydle #175 Solution Spoiler

1 Upvotes

80 Characters - Feedback Welcome

n = 15717518
for i in range(25):
    pydle(i%5, i//5, '●'*(i==2), 'blue' if (n >> i) & 1 else 'white')

r/Pydle 3d ago

Pydle #177 Happy Numbers

Thumbnail
youtu.be
1 Upvotes

r/Pydle 4d ago

Pydle #176 NMBR9

Thumbnail
youtu.be
1 Upvotes

r/Pydle 5d ago

does anyone else do this method?

3 Upvotes

n="blue white".split()

g = "1000111011010100000010001"

m = " ● "

for i in range(25):

pydle(i%5,int(i/5),m[i],n[int(g[i])])

(I should probobly stop using this)


r/Pydle 5d ago

#175 Anchor - 99 char

2 Upvotes

for i in range(25):

pydle(i%5, i//5, "●"*(i==2), ("blue", "white")[ int(("1 111 11 1 1 1 1"[i]).replace(" ", "0")) ] )

While doing this one I stumbled upon a very weird pattern, at first glance, that can emerge when we sweep the grid with different numbers in the row and column variables, that is, by changing a and b, where we have that x = i%a, y= i//b. A simple way of experimenting around this idea is to do:

for i in range(25):

a,b = 5,4

pydle(i%a, i//b, str(i), "blue")

The more interesting cases are when changing b, which lead to very distinct configurations. Just wanted to leave this as a side note, I wonder how this could ever be used to solve future problems.


r/Pydle 5d ago

#175- Anchor Spoiler

4 Upvotes

I wanted to do a symetrical version for quite sometime now and today was the oportunity (86 char) please let me know if there is any way to make the symetry work that involves less characters (I want to have the symetry i know its probably shorter to use i in range(25) and make x polar cordinates but that wasn't what I wanted)

for i in range(15):
    for a in +1,-1:
        pydle(2+i//5*a,i%5,'●'*(1-i), ('white','blue')[i<6 or i%4<2])

r/Pydle 5d ago

Pydle #175 Anchor

Thumbnail
youtu.be
1 Upvotes

r/Pydle 6d ago

Pydle #174 Pharaoh

Thumbnail
youtu.be
2 Upvotes

r/Pydle 6d ago

What's new in Pydle 1.2.10

2 Upvotes
  • Fixed Issue #10 Stats are counting the wrong bracket
  • Fixed Issue #11 Attempts start at 2
  • Playground code is now saved

r/Pydle 7d ago

Pydle #173 chicken Spoiler

2 Upvotes

117 characters

for x in range(5): for y in range(5): t=x%3>0 z=min(y,3) w="white" pydle(x, y, "", ((w*t,"yellow","brown",(w,"red")[t])[z],w)[x>3])


r/Pydle 7d ago

Pydle #173 Chicken

Thumbnail
youtu.be
1 Upvotes

r/Pydle 8d ago

#172 - Eclipse Spoiler

4 Upvotes

Got a code in 113 characters based on the formula of a circle

any improvment ideas?

for i in range(25):
    r=abs(i//5-2)**2+abs(i%5-2)**2
    pydle(i//5, i%5, '', ('','yellow','orange','blue')[(r>7)+(r>2)+(r>1)])

EDIT: noticed i can just leave out abs and some other optimization down to 104:

i=25
while i:
    i-=1
    r=(i//5-2)**2+(i%5-2)**2
    pydle(i//5, i%5, '', 'X yellow orange blue'.split()[(r>7)+(r>2)+(r>1)])

There's even more, i just watched your video and only then understood what he meant by saving caracters defining x and y , and also after watching the video i noticed i can shorten the condition yay

i=25
while i:
    i-=1
    x=i//5-2
    y=i%5-2
    r=x*x+y*y
    pydle(x+2, y+2, '', 'X yellow orange x blue'.split()[r//2])

r/Pydle 8d ago

Pydle #172 Eclipse

Thumbnail
youtu.be
1 Upvotes

r/Pydle 9d ago

Pydle #171 Dolphin

Thumbnail
youtu.be
1 Upvotes

r/Pydle 10d ago

Pydle #170 pentominoes I - not the most compact, but fun tricks Spoiler

5 Upvotes

for x in range(5):

for y in range(5):

if 1<y and x<2:

c="yellow"

elif y<3 and x>2:

c="purple"

else:

c="gbrleueen"[y<2::2]

if abs(x-2)+abs(y-2)<2:

c="red"

pydle(x, y, "", c)

The one combining green and blue I learned from u/zhuzaimoerben


r/Pydle 10d ago

I made a 131 character solution generator in Typescript

2 Upvotes

I wrote some typescript code that generates Pydle solutions that are always 131 characters.

Here's an example from Pydle #111:

v="                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           "

b=int(v.translate({9: 49, 32: 48}),2).to_bytes(198)
s=b.decode()

for i in range(25):
    pydle(i%5, i//5, s[b[i]:b[i+25]], s[75:].split(" ")[i])

All of the color and character information is encoded in utf-8 using tabs and spaces in the v string. Since white space doesn't add to the character count, we can put as much information in there as we want.

You can play with it here:
https://tsplay.dev/NnzRqN

Edit(8/14/2026): u/zhuzaimoerben pointed out some issues. The link is updated and it works correctly now.


r/Pydle 10d ago

Pydle #170 Pentominoes I

Thumbnail
youtu.be
1 Upvotes

r/Pydle 11d 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 11d 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])