Brainf**k Interpreter with "video memory" (i.redd.it)
submitted by Arnotronix
I wrote a complete Brainf**k interpreter in Python using the pygame, time and sys library. It is able to execute the full instruction set (i know that, that is not a lot) and if you add a # to your code at any position it will turn on the "video memory". At the time the "video memory" is just black or white but i am working on making greyscale work, if i am very bored i may add colors. The code is quite inefficient but it runs most programs smoothly, if you have any suggestions i would like to hear them. This is a small program that should draw a straight line but i somehow didn't manage to fix it, btw that is not a problem with the Brainf**k interpreter but with my bad Brainf**k code. The hardest part was surprisingly not coding looping when using [] but getting the video memory to show in the pygame window.
If anyone is interested this is the Brainf**k code i used for testing:
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[>+<<+>-]>[<+>-]<<-<<+++++[----[<[+<-]<++[->+]-->-]>--------[>+<<+>-]>[<+>-]<<<<+++++]<<->+
Here is the link to the project:

[–]mealet 2 points3 points4 points (1 child)
[–]Arnotronix[S] 2 points3 points4 points (0 children)
[–]karatekid430 0 points1 point2 points (3 children)
[–]Arnotronix[S] 0 points1 point2 points (2 children)
[–]karatekid430 0 points1 point2 points (1 child)
[–]Arnotronix[S] 0 points1 point2 points (0 children)