Black Pentagon

From Esolang
Jump to navigation Jump to search
The title of this article is incorrect because of technical limitations. The correct title is Black Pentagon.png.

Introduction

Black Pentagon.png is an esolang which uses pictures of pentagons to write your programme, and BP for short.

Order of Programmme

From left to right and up to down.

The Meanings of Different Pentagons

  • A white pentagon with a black frame - Input an integer. BP1.png
  • A white pentagon with a blue frame, a condition writen on it. - If the condition is true, do the operations in the box made of four small pentagons (two blue ones in the left and two green ines in the right(with black frames)). BP2.png
  • A red pentagon without a frame, an integer written on it. - Repeat the operations in the box made of four small pentagons (two blue ones in the left and two green ines in the right(with black frames)) for the integer times. BP3.png
  • A purple pentagon without a frame, a box just like the above inside it. - Repeat the operations forever.BP4.png
  • A white pentagon with a orange frame, an integer written on it. - Change the integer to a char base on Unicode.BP5.png
  • A orange pentagon with a black frame, a char written on it. - Change the char to an integer base on Unicode.BP6.png
  • A black pentagon but up side down - Break a loop.BP7.png
  • A white pentagon with a black frame but up side down, an integer or a char written on it - Output the integer/char.BP8.png
  • A black pentagon - End of the programme.BP9.png

Variables and Comparison

Variables

  • Any small up-side-down pentagon can be a variable.
  • Use = to give a value.

Comparison

  • Equal(=): Two small red pentagons not completely overlapping (with black frame).
  • Greater than(>): A small grey pentagon (with black frame).
  • Less than(<): A small black pentagon with a red frame.
  • Or: A small yellow pentagon (with black frame).
  • And: A small pink pentagon (with black frame).

BP-comparison.png

Example

Hello, World!

BP10.png

Truth Machine

BP-TruthMachine.png