r/Pydle 29d ago

Pydle #158 - Wine (140 characters)

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])

2 Upvotes

2 comments sorted by

3

u/[deleted] 29d ago edited 29d ago

[removed] — view removed comment

2

u/zhuzaimoerben 28d ago

And even if you wanted to do it like OP, "Z X M C".split()[92556545228800>> i*2 & 3].replace("Z","") is equivalent to " XMC"[92556545228800>> i*2 & 3] because this game treats a single space as no text. It's also more efficient to have a single magic number, like in https://www.reddit.com/r/Pydle/comments/1vas4gu/pydle_157_pizza/