Skip to content

Program structure

Victor Dumbrava edited this page Jan 22, 2018 · 3 revisions

Padding

Each Triangularity program must be padded with dots such that the overall shape of the program is rectangular, but the dots themselves must be laid out in nice, right-angled and isosceles triangles. Basic rules:

  • If you have N lines of code, each line must consist of 2N - 1 characters.
  • The Kth line, counting from the bottom, must be padded with K - 1 dots on each side.
  • Any character that is not a command is ignored. The obvious exceptions are newlines and dots.
Clone this wiki locally