User:Unname4798/Esolangs/Coolbeans: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Unname4798 (talk | contribs)
No edit summary
Unname4798 (talk | contribs)
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
Coolbeans is an esoteric programming language created by [[User:Tommyaweosme]] and [[User:Unname4798]]
Coolbeans is an esoteric programming language created by [[User:Tommyaweosme]] and updated by [[User:Unname4798]]
== Stuff ==
== Stuff ==
  - path
  - path
Line 46: Line 46:
  T - typeof turn - turns the signal right if it is a number; turns the signal left if it is a string.
  T - typeof turn - turns the signal right if it is a number; turns the signal left if it is a string.
  Y - It now concatenates two strings together. It also concatenates a number and a string.
  Y - It now concatenates two strings together. It also concatenates a number and a string.
  L - It now turns the string-signal right if it is empty.
  L - It now turns the string right if it is empty.
  F - Takes the trailing digit.
  F - Takes the trailing digit.
  M - Outputs infinitely
  M - Outputs fovever.
U - Diode, deletes signals moving rightwards and upwards.
D - Diode, deletes signals moving leftwards and downwards.
== Examples ==
== Examples ==
=== Original ===
=== Original ===
Line 87: Line 89:
  | | |
  | | |
  \-R-/
  \-R-/
   |
   D
   ^
   ^
==== Tommyaweosme function ====
==== Tommyaweosme function ====
        /-M56#$
      v
  /--\  |
      |
  |  | |
      #
  %-|  Y-F-L
      2
  |  |  |
      #  /-M56#$
  \--/ |
      |   |
        \-#87#$
  %-----X-F-L
          |
          \-#87#$
==== [[User:Unname4798/Esolangs/Bring_back_the_old_sandbox|BBTOS]] ====
>&#BRING BACK THE OLD SANDBOX#$
== Computational class ==
== Computational class ==
Coolbeans is not [https://esolangs.org/wiki/Aweosme-complete tommyaweosme]-complete.
Coolbeans is not [https://esolangs.org/wiki/Aweosme-complete tommyaweosme]-complete.


That's because it doesn't have third quality.
That's because it doesn't have third quality.

Latest revision as of 18:05, 17 June 2024

Coolbeans is an esoteric programming language created by User:Tommyaweosme and updated by User:Unname4798

Stuff

- path
| path
\ turn
/ turn
+ intersection (they keep going the same way)
> signal going right
< signal going left
^ signal going up
v signal going down

Signals can hold values.

When a signal runs into a hashtag sign, it replaces its value with the number until the next hashtag.

v
|
|
#
1
2
#
\---$

This collects 12 and outputs it.

$ output
% input

To duplicate, make a split in the path

  v
  |
  |
-----

Both signals have the same value.

@ trash

Any signal running into trash gets trashed.

& stringify

Stringifying a pointer means that when it runs into *, it treats it like a hashtag but for strings.

Two spaces in a row means newline, by the way.

Y add

A Y adds values that go on sides of it and releases it on a new track.

L conditional turn

Turns from up to right if the value is 0. Turns right to up if value is non 0 or string. Otherwise, it deletes.

v1.1

X - multiplies two numbers and deletes if there is a string.
R - random turn.
T - typeof turn - turns the signal right if it is a number; turns the signal left if it is a string.
Y - It now concatenates two strings together. It also concatenates a number and a string.
L - It now turns the string right if it is empty.
F - Takes the trailing digit.
M - Outputs fovever.
U - Diode, deletes signals moving rightwards and upwards.
D - Diode, deletes signals moving leftwards and downwards.

Examples

Original

Hello World

>&#Hello, world!#$

A+B problem

v v
%Y%
 $

Truth Machine

 %
/--\
L--+-$
 /\|
 #L/
 1
 #/\
 \$|
  \/

Multiply by 2

  %
  |
/---\
|   |
\-Y-/
  |
  $

7 bottles of tommyaweosme

Program is too large to view.

XKCD Random Number

>#4#$

v1.1

Actual random number generator (0-2)

$ $ $
# # #
0 1 2
# # #
| | |
\-R-/
  D
  ^

Tommyaweosme function

      v
      |
      #
      2
      #   /-M56#$
      |   |
%-----X-F-L
          |
          \-#87#$
>&#BRING BACK THE OLD SANDBOX#$

Computational class

Coolbeans is not tommyaweosme-complete.

That's because it doesn't have third quality.