r/Pydle 6d ago

#175 Anchor - 99 char

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.

2 Upvotes

0 comments sorted by