
453 Views
134 Executions
Most op scipt ever print helo world
Universal Script 📌
oatssiPublished 10
10 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
OPPPP
local program = [[
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.]]
local tape = {}
local tapePointer = 1
local output = ""
for i = 1, 30000 do
tape[i] = 0
end
local function interpretBF(code)
local codePointer = 1
local loopStack = {}
while codePointer <= #code do
local instruction = string.sub(code, codePointer, codePointer)
if instruction == ">" then
tapePointer = tapePointer + 1
elseif instruction == "<" then
tapePointer = tapePointer - 1
elseif instruction == "+" then
tape[tapePointer] = tape[tapePointer] + 1
elseif instruction == "-" then
tape[tapePointer] = tape[tapePointer] - 1
elseif instruction == "." then
output = output .. string.char(tape[tapePointer])
elseif instruction == "[" then
if tape[tapePointer] == 0 then
local count = 1
while count > 0 do
codePointer = codePointer + 1
local nextInstruction = string.sub(code, codePointer, codePointer)
if nextInstruction == "[" then
count = count + 1
elseif nextInstruction == "]" then
count = count - 1









hello world in brainfuh thats what we needed world is saved
@imnotqqka Exactly
peak
brainfuh