A simple bot that can execute Brainfuck code
This Brainfuck Bot allows you to easily execute any brainfuck code
There isn't much else to it. It does its job and it does it well. It is also faster than some other implementations, due to it being written in C#.
Currently you can:
A few things to remember:
Things I might add in the future:
I would like to thank thomm.o#8637 for letting me use his idea for the bot
In case you are not familiar with Brainfuck, I'll leave you with this info page:
Background
Brainfuck is an esoteric programming language created in 1993 by Urban Müller. The language contains only eight simple commands and an instruction pointer. While it is fully Turing - complete, it is not intended for practical use, but to challenge and amuse programmers.
Diagram
| 0 | 0 | 0 | 0 | 0 || 0 || 0 | 0 |
--------------------||---||--------
tape ---^ ^ ^
cell -------- |
head(pointer) -----
Instructions
> - Move the pointer right< - Move the pointer left+ - Increment the current cell- - Decrement the current cell. - Output the value of the current cell, - Replace the value of the current cell with input[ - Jump to the matching ] instruction if the value of the current cell is zero] - Jump to the matching [ instruction if the value of the current cell is not zeroMemory Layout
The brainfuck tape is made of an infinite(in this case limited to 30,000) collection of 1 byte cells. Each cell represents a single, unsigned 8 - bit number. Cells start initialized at zero.
Since the numbers are unsigned, there is no need for any complex integer implementation. If the upper limit of the cell is reached, it wraps back to zero. If zero is decremented, it must wrap back to 11111111.
0
0 مراجعات
يمكن ترك المراجعات فقط من قِبل المستخدمين المسجلين. جميع المراجعات تخضع للمراجعة من قبل مشرفي Top.gg. يرجى التأكد من الاطلاع على إرشاداتنا قبل النشر.
5 نجوم
0
4 نجوم
0
3 نجوم
0
2 نجوم
0
1 نجم
0
لا توجد مراجعات هنا بعد!