Do you know who Piet Mondrian is? The details of his life may not be familiar, but I bet you've come across one or two of his abstract works. Physicist and programmer David Morgan-Mar, better known by his nickname DangerMouse, decided to create a programming language inspired by Piet Mondrian's paintings, and the final result is "Piet". Each program is a colorful bitmap full of strange patterns, and despite its initial complexity, it has proven to be extremely flexible.
In more than one occasion we've proven that a programming language doesn't always have to be "serious" or strict. Maybe you remember HeartForth, which basically uses emojis for its instructions, and then there's Rockstar, which follows a grammatical pattern similar to rock songs. The point is that with enough knowledge and a pinch of creativity, a language can become a real challenge for other programmers.
https://old.neoteo.com/befunge-el-lenguaje-de-programacion-mas-extrano/The case of Piet, designed by David "DangerMouse" Morgan-Mar, is very particular. The programs don't end up as executables or other traditional resources, but they look a lot like the works of the Dutch artist Piet Mondrian. In essence, Piet uses 20 colors (six base colors multiplied by three shades, plus white and black), but judging by the patterns of some programs, there's a high degree of flexibility. In fact, there's no "official" interpreter per se, and Piet enthusiasts have followed its specification in different ways over time.
Piet found some popularity in the development of online puzzles. If you come across one of these programs, the official information should be enough to find a solution, or point you in the right direction. Next, we'll share some examples of programs made in Piet, and if you want to see more, here are additional samples.
Examples of Piet Programs
Among the examples, you'll find a program that counts beer bottles (referencing the 99 Bottles of Beer song), another that follows the Fizz Buzz game, and a special version of Conway's Game of Life.