- 2d programming language
- 23 Jan 2010 07:52:47 pm
- Last edited by _player1537 on 27 Jan 2010 01:29:53 am; edited 2 times in total
I was looking at random esoetric programming languages (http://esolangs.org/wiki/Main_Page) I found some that were 2d, and thought "Hey, I could make this on the calculator". I went to work and got something pretty neat. There are some limitations of course, some being:
the size can only be 8*16
limitation of characters (for now)
and speed.
Otherwise it works fine, I have put a video of it in action with a program that makes you input a number. If it is either 14, 15, or 16, go and display the number in an endless loop (this part could be changed)
The commands are as follows
V makes the "ball" move down
^ makes the "ball" move up
> makes it move to the right
< makes it move to the left
O output number
I input number
: turn the ball around
? checks if number is zero, if it is rotate to the right else rotate to the left
+ add one to the number
- subtract one from the number
Edit: 1-26-10
} move memory pointer to the right
{ move memory pointer to the left
. a space when outputting text
(imaginary) i A letter "I" when outputting text
(little) V Letter used for "V" when outputting text
Degree mark Used for the letter "O"
(little capital) E Outputs text
^-1 deletes one character from the back
^2 deletes one character from the front of the text
= skip over the next command
all other characters are added str3 to output
I will add more as time goes on.
any ideas, comments, or questions feel free to ask
the size can only be 8*16
limitation of characters (for now)
and speed.
Otherwise it works fine, I have put a video of it in action with a program that makes you input a number. If it is either 14, 15, or 16, go and display the number in an endless loop (this part could be changed)
The commands are as follows
V makes the "ball" move down
^ makes the "ball" move up
> makes it move to the right
< makes it move to the left
O output number
I input number
: turn the ball around
? checks if number is zero, if it is rotate to the right else rotate to the left
+ add one to the number
- subtract one from the number
Edit: 1-26-10
} move memory pointer to the right
{ move memory pointer to the left
. a space when outputting text
(imaginary) i A letter "I" when outputting text
(little) V Letter used for "V" when outputting text
Degree mark Used for the letter "O"
(little capital) E Outputs text
^-1 deletes one character from the back
^2 deletes one character from the front of the text
= skip over the next command
all other characters are added str3 to output
I will add more as time goes on.
any ideas, comments, or questions feel free to ask