"The Awoglet How 6 Language" Examples

Hello World

THE
AWOGLET TEXT
SEOHLRY TEXT Hello World
WHY TEXT
HOW

Hello World (shorter)

THE
WHY Hello World
HOW

Loop

THE
AWOGLET I
SEOHLRY I 0
SEOHLRY I 1+
WHY I
WHEN I < 10
SWING 4
HOW

Simple 8-ball

THE
| Think of a question, then run the program!
AWOGLET RES
AWOGLET RES2
AWOGLET RES3
SEOHLRY RES Yes
SEOHLRY RES2 No
SEOHLRY RES3 Maybe
WHEN HACK = 1
SWING 14
WHEN HACK = 1
SWING 16
SWING 17
SEOHLRY RES RES2
SWING 17
SEOHLRY RES RES3
WHY RES
HOW

99 Disks (99 Bottles of Beer parody)

THE
AWOGLET DISKS
SEOHLRY DISKS 99
WHEN DISKS < 1
SWING 15
WHY DISKS
WHY disks on the wall,
WHY DISKS
WHY disks.
WHY Take one down and collect it,
SEOHLRY DISKS 1-
WHY DISKS
WHY disks on the wall.
SWING 4
HOW

Calculate power of 2

THE
AWOGLET POWER
| Enter the power of 2 you want to get below
SEOHLRY POWER 1
AWOGLET A
SEOHLRY A 2
AWOGLET I
SEOHLRY I 1
| 2^power
SEOHLRY I 1+
SEOHLRY A A+
WHEN I < POWER
SWING 10
HOW A

Division using repeated subtraction

THE
AWOGLET A
AWOGLET B
AWOGLET C
| Devidend
SEOHLRY A 60
| Divisor
SEOHLRY B 5
| Counter (offset)
SEOHLRY C 0
| Actual program:
SEOHLRY A B-
SEOHLRY C 1+
WHEN A < B
SWING 17
SWING 12
WHY And we are left with:
WHY A
HOW C

Multiplication

THE
AWOGLET A
AWOGLET B
| Multiply...
SEOHLRY A 4
| By...
SEOHLRY B 2
| Actual program:
AWOGLET C
SEOHLRY C A
AWOGLET I
SEOHLRY I 1
SEOHLRY I 1+
SEOHLRY A C+
WHEN I < B
SWING 13
HOW A

Random number generator

THE
AWOGLET MIN
AWOGLET MAX
| Minimum
SEOHLRY MIN 0
| Maximum
SEOHLRY MAX 100
| Actual program:
AWOGLET I
SEOHLRY I MIN
WHEN I < MAX
SWING 14
SWING 20
SEOHLRY I 1+
WHEN HACK = 1
SWING 18
SWING 11
SEOHLRY MIN 1+
SWING 11
HOW MIN

Back to interpreter, Back to index