User Tools

Site Tools


pydle

Table of Contents

Pydle

My personal solutions to Pydles.

Pydle #159

r = range
 
for x in r(5):
    for y in r(5):
        f = lambda z: pydle(x, y, (x == y == 2) * "🖤", z)
        f("brown")
 
        if 0 < x < 4 and 0 < y < 4:
            f("purple")
 
        match (x, y):
            case (0 | 4, 0 | 1 | 4):
                f("white")
            case (1 | 3, 1) | (_, 4) | (0 | 4, _):
                f("blue")
            case (2, 0):
                f("orange")

Pydle #161

i = 0
for c in "22333200033100031110331111":
    pydle(i % 5, i // 5, "", "yellow orange green white".split()[int(c)])
    i += 1
pydle.txt · Last modified: by me

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki