Skip to content

Instantly share code, notes, and snippets.

View pzarzycki's full-sized avatar

pzarzycki

View GitHub Profile
@thomasloven
thomasloven / brainfuck_script.yaml
Last active March 31, 2025 06:30
A Home Assistant script which interprets brainfuck. Because science isn't about why, it's about why not!
sequence:
- variables:
jumplist: []
cells: "{{[0]*10}}"
cell_ptr: 0
ins: 0
program: >-
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.-
output: ""
jumps: "{{[0]*(program|length)}}"