Patterns

Commands

KNIT 3 knit 3 stitches (V)
PURL 2 purl 2 stitches (–)
ROW start the next row
LOOP 4 … END
repeat the lines in between 4 times
# note a comment, ignored

Purl Logic

A knitting pattern is really just a grid of two kinds of stitches, a lot like 1s and 0s. (Some of the first programmable machines were looms, punched cards and all.) Write a tiny program that knits each pattern, and try to use as few lines as you can. Every row is knitted left to right.

·

Pattern

Your knitting

Program

Your programs and best scores are saved in this browser.