Skip to content

Instantly share code, notes, and snippets.

View TehFlaminTaco's full-sized avatar

William Lemon TehFlaminTaco

View GitHub Profile
when tcomm.onmessage{
t = string.gsub(content, "[rl]", "w")
t = string.gsub(t, "[RL]", "W")
n = string.gsub(source, "[rl]", "w")
n = string.gsub(n, "[RL]", "W")
tcomm.broadcast(t, n, job, freq, pass, ref, verb, language)
}
tcomm.broadcast("*beep*", "Unknown Signal", "Subsystem")
WRITE_THE_HEADER
62 WRITE 62 WRITE 62 WRITE 62 WRITE 43 WRITE 62 WRITE 62 WRITE 43 WRITE 62 WRITE
READ WHILE
PEEK 54 STACKSUB NOT WHILE IF_CHAR_IS(6)
WRITE(>>>+>++++++)
POP 62 WRITE
POP 62 WRITE
POP 62 WRITE
POP 43 WRITE
POP 62 WRITE
>>>>+>>+>>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>>>+>+++++++++++++++++++++++++++++++++++++++++++.>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>>>+>+++++++++++++++++++++++++++++++++++++++++++.>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>>>+>,[[->>>+>+<<<<]>>>[-<<<+>>>]+>>>>+>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++[-<<<<->>>>]<-<<<>>>+<<<[[-]>>>-<<<]>>>[-<<<+>>>]<<<[<<<<<[>>>>>[-]<-]>>>>[>[-]>>>>>>>]<<<<<<<>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.<<<<<[>>>>>[-]<-]>>>>[>[-]>>>>>>>]<<<<<<<>>>+>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.<<<<<[>>>>>[-]<-]>>>>[>[-]>>>>>>>]<<<<<<<>>>+>+++++++++++++++++++++++++++
local s = ">>>>+>>+>"
local funcs = {
PUSH = ">>>+>",
POP = "<<<<<[>>>>>[-]<-]>>>>[>[-]>>>>>>>]<<<<<<<",
FLIP = ">[>>>>]-[+<<<<-]+>",
PEEK = "[->>>+>+<<<<]>>>[-<<<+>>>]+>",
WHILE = "[",
END = "]",
WRITE = ".",
var indecisive = [];
var board = []; // An array of arrays of objects. [y [x {pen, pencil}]]
var boardString = // Of course, the newlines for this are optional. We're only going to be parsing the numbers from this.
// 0 identifies an unknown square.
`080490020
045380006
900000000
098001307
010243080
{"lang":"lua","code":"print'https://gist.github.com/TehFlaminTaco/a225399e3abcf333548994a69e0210b6'"}
var board=[];
function updateBoard(data){
for(var y=0;y<window.App.height;y++){
board[y]=[];
for(var x=0;x<window.App.width;x++){
board[y][x] = data.charCodeAt(x+(y*window.App.width));
}
}
}
function doUpdate(){
#BRAINFUCK
#uses lir instead of <,> respectively.
#import math
#import cond
#Setup initial conditions
M\{([\[\]+\-.ilr]+)(!(.*?))?\}/WAIT\n\n\n\n$1\ninput$3\n/
#If the current memory is blank, unblank it.
#Convert to Base1
u\{0(\d*)(_*)\}/u{$1mult10{$2}}/
u\{1(\d*)(_*)\}/u{$1mult10{$2}_}/
u\{2(\d*)(_*)\}/u{$1mult10{$2}__}/
u\{3(\d*)(_*)\}/u{$1mult10{$2}___}/
u\{4(\d*)(_*)\}/u{$1mult10{$2}____}/
u\{5(\d*)(_*)\}/u{$1mult10{$2}_____}/
u\{6(\d*)(_*)\}/u{$1mult10{$2}______}/
u\{7(\d*)(_*)\}/u{$1mult10{$2}_______}/
u\{8(\d*)(_*)\}/u{$1mult10{$2}________}/
(?#Convert to Base1)
u\{0(\d*)(#*)\}/u{$1mult{##########}{$2}}/
u\{1(\d*)(#*)\}/u{$1mult{##########}{$2}#}/
u\{2(\d*)(#*)\}/u{$1mult{##########}{$2}##}/
u\{3(\d*)(#*)\}/u{$1mult{##########}{$2}###}/
u\{4(\d*)(#*)\}/u{$1mult{##########}{$2}####}/
u\{5(\d*)(#*)\}/u{$1mult{##########}{$2}#####}/
u\{6(\d*)(#*)\}/u{$1mult{##########}{$2}######}/
u\{7(\d*)(#*)\}/u{$1mult{##########}{$2}#######}/
u\{8(\d*)(#*)\}/u{$1mult{##########}{$2}########}/