Skip to content

Instantly share code, notes, and snippets.

from math import *
# pip install drawsvg
import drawsvg as draw
w = h = 1024
circle_radius = 500
circle_center_radius = 5
1x Abdel Adrian, Gorion's Ward
1x Activated Sleeper
1x Altar of Dementia
1x Animate Dead
1x Archon of Falling Stars
1x Ashnod's Altar
1x Bartolomé del Presidio
1x Bladewing the Risen
1x Blasting Station
1x Bloodflow Connoisseur
turn=1
activeplayer=p0
activephase=MAIN1
p0life=3
p0landsplayed=0
p0landsplayedlastturn=0
p0numringtemptedyou=0
p0counters=ENERGY=2
p0hand=
p0library=
# This script runs all possible turing machines on all possible (finite) inputs
# idea by Toby Ord: http://www.amirrorclear.net/academic/ideas/simulation/index.html
from itertools import product
tms = []
# https://stackoverflow.com/q/79023187/9779026
def binary_split(v):
# works for v > 0
/-
Written by user "-d" from the https://bbchallenge.org/ Discord (https://discord.gg/3uqtPJA9Uv)
https://wiki.bbchallenge.org/wiki/BB(6)
Hydra:
https://wiki.bbchallenge.org/wiki/Hydra
https://bbchallenge.org/1RB3RB---3LA1RA_2LA3RA4LB0LB0LA
Antihydra:
!ENTRY = 0 R main()[] 1 R main()[]
dec.check = 0 L dec.restore 1 R dec.scan_1
dec.init = 0 R dec.check 0 R dec.check
dec.restore = 1 L return.1 1 L return.1
dec.scan_0 = 0 L dec.scan_done 1 R dec.scan_1
dec.scan_1 = 0 R dec.scan_0 1 R dec.scan_1
dec.scan_done = 0 L dec.shift_0 1 L dec.shift_0
dec.shift_0 = 0 L return2.0 0 L dec.shift_1
dec.shift_1 = 1 L dec.shift_0 1 L dec.shift_1
dispatch.0.carry = 1 L dispatch.1 0 L dispatch.1.carry
0 0 0 R 476
0 1 1 R 476
1 0 0 L 3
1 1 1 R 5
2 0 0 R 1
2 1 0 R 1
3 0 1 L 518
3 1 1 L 518
4 0 0 L 6
4 1 1 R 5
0RSI1RSI_0LD1RF_0RB0RB_1LTY1LTY_0LG1RF_0RE1RF_0LH1LH_0LTZ0LI_1LH1LI_1LK0LL_0LM1LM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= 0 R dec.check 0 R dec.check
dec.restore = 1 L return.1 1 L return.1
dec.scan_0 = 0 L dec.scan_done 1 R dec.scan_1
dec.scan_1 = 0 R dec.scan_0 1 R dec.scan_1
dec.scan_done = 0 L dec.shift_0 1 L dec.shift_0
dec.shift_0 = 0 L return2.0 0 L dec.shift_1
dec.shift_1 = 1 L dec.shift_0 1 L dec.shift_1
dispatch.0.carry = 1 L dispatch.1 0 L dispatch.1.carry
!ENTRY = 0 R main()[] 1 R main()[]
dec.check = 0 L dec.restore 1 R dec.scan_1
dec.init = 0 R dec.check 0 R dec.check
dec.restore = 1 L return.1 1 L return.1
dec.scan_0 = 0 L dec.scan_done 1 R dec.scan_1
dec.scan_1 = 0 R dec.scan_0 1 R dec.scan_1
dec.scan_done = 0 L dec.shift_0 1 L dec.shift_0
dec.shift_0 = 0 L return2.0 0 L dec.shift_1
dec.shift_1 = 1 L dec.shift_0 1 L dec.shift_1
dispatch.0.carry = 1 L dispatch.1 0 L dispatch.1.carry