Talk:Bracky

From Esolang
Jump to navigation Jump to search

May you give a couple of examples with step-by-step explanation? --Blashyrkh (talk) 09:58, 22 February 2026 (UTC)

Ok. The first example is "()", "(())(()())". First, the initial set is set to (). Then, we get (())(()()) which is ()->()(), but to not make it look like whatever ()()() is, we add a set of brackets on it.
This program will not halt because the program still has stuff to replace and it will enter to a infinite loop because ()() is 2 ()s which means these will also be turned into ()() and it will double to hell. Also, we need a sucessor :function. The sucessor function looks like (())((())). When we unpack it, it turns into ()(()) which means if we give it (), it will turn it into (()), which there is a () inside so it turns into a ((())) and it goes like that. Also, :a oscillator: "()", "(())((()))", "((()))(())". When we unpack the replacement rules, it becomes ()(()) and (())(). The code begins by replacing ()s with (())s. Then, it replaces (())s with ()s which result in a 2-tick oscilator. :Thats it. --Mrtli08 (talk) 10:05, 22 February 2026 (UTC)