Trickcode
Jump to navigation
Jump to search
Trickcode
Trickcode is a language made by User:Trickbrain26 and modeled, a little after brainf**k, and mostly after 3var
It has 40 commands but is quite easy to use, It is a simple language to use because as all its commands are 1 character
It has 100 cells(0-99) for memory, and it has some extra variables for calculations like var1, var2, return, clipboard
Commands
Command | Description |
---|---|
<
|
Decrement the cell pointer |
>
|
Increment the cell pointer |
^
|
Print the ASCII of the cell pointer |
%
|
Print the value of the cell pointer |
+
|
Increment the current cell |
-
|
Decrement the current cell |
c
|
Copy the current cell to the clipboard |
v
|
Paste the clipboard into the current cell |
/
|
Set the current cell as var1 |
\
|
Set the current cell as var2 |
_
|
Set the current cell to the return value |
a
|
Add var1 to var2 and store in return |
s
|
Subtract var2 from var1 and store in return |
m
|
Multiply var1 by var2 and store in return |
d
|
Divide var1 by var2 and store in return |
M
|
Mod var1 by var2 and store in return |
e
|
Exponentiate var1 by var2 and store in return |
u
|
A forever statement (for use with "while loops") |
x
|
A statement var1==var2 (for "if statements" and "while loops") |
y
|
A statement var1>var2 (for "if statements" and "while loops") |
z
|
A statement var1<var2 |
i
|
A statement of var1 (for "for loops") |
l
|
A statement of var2 (for "for loops") |
p
|
Print the ASCII of the current cell, or if a newline character is input then make a new line |
P
|
Print the value of the current cell |
{
|
Start an if statement, must have a statement before it |
}
|
End an if statement |
[
|
Start a while loop, must have a statement before it |
]
|
End a while loop |
r
|
Reset the current cell |
R
|
Reset all the cells |
#
|
Take a number input and store it to the current cell |
"
|
Take a 1 character input and store the value of it to the current cell |
$
|
Start a line comment |
&
|
End a line comment |
(
|
Start a for loop, must have a statement before it |
)
|
End a for loop, must have a statement before it |
`
|
Tells the interpreter to ignore the next character |
!
|
Terminate the program |
w
|
Wait 1 frame |
Only these commands are processed by an interpreter other characters such as spaces, etc. are not
Sample Programs
Here are some sample programs i made
Hello World!
+++++++/+++\m_++>++++++++++/\m_+c>v+++++++c>v>v+++>+++/+++++++\m_++>+++++++/++\m_+++++++ >++++++++++/\m_+++++++++++c>v+++>v---c>v-------->+++/++++++++\m_<<<<<<<<<<<p>p>p>p>p>p>p>p>p>p>p>p
Countdown
>+++++++++++++<-\+++++++++++/y[P>p<-/wwwwwww]
Cat
u["p]