from OS_class import *

os = OS()

# MARK: name and delay
os.name = "Glider 3"
os.delay = 3

# MARK: bead types
os.categoryColors = { "H": {"name": "lightBlue500"} }
k = 1
n = 6*k
H = ["H{}".format(i) for i in range(n)]

# MARK: rule
for i in range(k):
	os.add_attraction_pairs(H, H, [(6*i, 6*i+5), (6*i+3, 6*i+8)])

# MARK: seed conformation
os.seedConformation = [ H[0], SE, H[1], SW, H[2], E, H[3] ]

# MARK: transcript prefix and period
declarations = [	
	OS.declare("glider3", H),
]
os.compactTranscriptPrefix = [
	declarations,
	OS.unfold(4, n, "glider3"),
]
os.compactTranscriptPeriod = [
	declarations,
	"glider3",
]
os.transcriptPeriodCount = 10

# MARK: save

os.save_as_json()
