A=B - A one instruction esolang - My Solutions
Table of Contents
- Game info
- [1-1] A to B (1/1)
- [1-2] Uppercase (3/3)
- [1-3] Singleton (3/3)
- [1-4] Singleton 2 (3/3)
- [1-5] Sort (3/3)
- [1-6] Compare (4/4)
- [2-1] Hello World (1/1)
- [2-2] AAA (4/4)
- [2-3] Exactly Three (5/5)
- [2-4] Remainder (6/6)
- [2-5] Odd (10/10)
- [2-6] The Only (TODO)
- [2-7] Ascend (8/8)
- [2-8] Most (11/11)
- [2-9] Least (10/9)
- [3-1] Remove (2/2)
- [3-2] Spin (2/2)
- [3-3] A to B 2 (4/4)
- [3-4] Swap (4/4)
- [3-5] Match (7/7)
- [3-6] Most 2 (13/11)
- [3-7] Palindrome (8/8)
- [4-1] Hello 2 (1/1)
- [4-2] Remove 2 (3/3)
- [4-3] Cut (4/4)
- [4-4] Remove 3 (5/5)
- [4-5] Reverse (7/7)
- [4-6] Reverse 2 (5/6)
- [4-7] Cut 2 (7/7)
- [4-8] Clone (10/11)
- [4-9] A to B 3 (5/5)
- [4-10] Half (8/8)
- [4-11] Clone 2 (9/9)
- [4-12] To B or not to B (7/9)
- [4-13] Center (10/10)
- [4-14] Center 2 (20/15)
- [4-15] Expansion (13/13)
- [4-16] Merge (7/9)
- [5-1] Count (7/7)
- [5-2] A+1 (4/4)
- [5-3] A+B (16/9)
- [5-4] A-B (7/8)
- [5-5] A*B (TODO)
- [5-6] A/B (TODO)
- [6-1] Hello again (4/4)
- [6-2] Palindrome 2 (TODO)
- [6-3] To B or not to B 2 (TODO)
Game info
A=B is a programming puzzle game with only one instruction: A=B, which means replacing A with B.
[1-1] A to B (1/1)
a=b
[1-2] Uppercase (3/3)
a=A b=B c=C
[1-3] Singleton (3/3)
aa=a bb=b cc=c
[1-4] Singleton 2 (3/3)
aaa=aa aa=
[1-5] Sort (3/3)
cb=bc ca=ac ba=ab
[1-6] Compare (4/4)
ba=ab ab= bb=b aa=a
[2-1] Hello World (1/1)
=(return)helloworld
[2-2] AAA (4/4)
aaa=(return)true ab=a ac=a =(return)false
[2-3] Exactly Three (5/5)
b=a c=a aaaa=(return)false aaa=(return)true =(return)false
[2-4] Remainder (6/6)
b=a c=a aaa= aa=(return)2 a=(return)1 =(return)0
[2-5] Odd (10/10)
ba=ab cb=bc ca=ac aaa=a bbb=b ccc=c aa=(return)false bb=(return)false cc=(return)false =(return)true
[2-6] The Only (TODO)
[2-7] Ascend (8/8)
ba=ab cb=bc ca=ac bc=B bB=Bb aB= Bc=(return)true =(return)false
[2-8] Most (11/11)
ba=ab ca=ac cb=bc aaaa=(return)a cccc=(return)c bbb=(return)b aaa=(return)a ccc=(return)c aa=(return)a bb=(return)b cc=(return)c
[2-9] Least (10/9)
ba=ab ca=ac cb=bc cc=C Cc=C aa=A Aa=A bb=B Bb=B Ab=bA AB=(return)c AC=(return)b BC=(return)a b=B a=A c=C BA=(return)c
abbc=b abbbc=b abbbbc=b abc= ba=ab ca=ac cb=bc ac=(return)b bc=(return)a =(return)c
[3-1] Remove (2/2)
(start)a= (end)a=
[3-2] Spin (2/2)
(start)c=(end)c (start)b=(end)b
[3-3] A to B 2 (4/4)
(start)a=(end)B B=(start)b (end)a=(start)A A=(end)b
[3-4] Swap (4/4)
(start)a=(end)A bA=(start)aB A=a B=b
Aa=aA (start)a=A (end)b=(start)b A=(end)a
[3-5] Match (7/7)
(end)aA=(return)true (end)bB=(return)true (end)cC=(return)true (start)a=(end)A (start)b=(end)B (start)c=(end)C =(return)false
[3-6] Most 2 (13/11)
ca=ac ba=ab cb=bc aaaaaaa=(return)aaaaaaa ccccccc=(return)ccccccc bbbbbbb=(return)bbbbbbb aaaaaa=(return)aaaaaa cccccc=(return)cccccc bbbbbb=(return)bbbbbb aaaaa=(return)aaaaa ccccc=(return)ccccc bbbbb=(return)bbbbb aaaa=(return)aaaa cccc=(return)cccc bbbb=(return)bbbb bbb=(return)bbb aaa=(return)aaa ccc=(return)ccc aa=(return)aa bb=(return)bb cc=(return)cc a=(return)a b=(return)b c=(return)c
ba=ab ca=ac cb=bc aZ=(start)aa ab=(end)X ac=(end)Z XZ=(start)aac Z=c aX=aa X=b bc=(end)Y cY=(start)cc Y=b
[3-7] Palindrome (8/8)
(end)aA= (end)bB= (end)cC= (end)bA=(return)false (end)cA=(return)false (end)aB=(return)false (end)cB=(return)false (end)aC=(return)false (end)bC=(return)false (start)a=(end)A (start)b=(end)B (start)c=(end)C =(return)true
a{a}= b{b}= c{c}= (start)a=(end){a} (start)b=(end){b} (start)c=(end){c} }{=(return)false =(return)true
[4-1] Hello 2 (1/1)
(once)=(start)hello
[4-2] Remove 2 (3/3)
(once)a= (once)a= (once)a=
[4-3] Cut (4/4)
(once)=xxx xa= xb= xc=
[4-4] Remove 3 (5/5)
(once)=(end)xxx ax= bx=xb cx=xc x=
[4-5] Reverse (7/7)
(once)=(start)1 1a=(end)2a 1b=(end)2b 1c=(end)2c a2=(start)a b2=(start)b c2=(start)c
[4-6] Reverse 2 (5/6)
(once)=(start)I AIa=aAI AIb=bAI AIc=cAI BIa=aBI BIb=bBI BIc=cBI CIa=aCI CIb=bCI CIc=cCI (start)Ia=IAI (start)Ib=IBI (start)Ic=ICI I= A=a B=b C=c
(once)=(end)>>>>>>> a>=(end)a b>=(end)b c>=(end)c >=
[4-7] Cut 2 (7/7)
(once)=1 1a=a2 1b=b2 1c=c2 (once)2=1 2a= 2b= 2c=
(once)=(start)xxxxxxxxx xxxa=ax xxxb=bx xxxc=cx xa= xb= xc=
[4-8] Clone (10/11)
(once)=111 1a=(end)aA 1b=(end)bB 1c=(end)cC Aa=aA Ab=bA Ac=cA Ba=aB Bb=bB Bc=cB Ca=aC Cb=bC Cc=cC (end)A=(start)a (end)B=(start)b (end)C=(start)c
(once)=(start)x (once)y=x (once)y=x A=(end)a B=(end)b C=(end)c xa=Aay xb=Bby xc=Ccy y=
[4-9] A to B 3 (5/5)
(once)=1 1a=b1 1b=a1 1c=c1 1=
[4-10] Half (8/8)
(once)=(start)x xxa=ax xxb=bx xxc=cx xa=xx xb=xx xc=xx x=
[4-11] Clone 2 (9/9)
(once)=(end)/ (once)=(start)I A=(end)a B=(end)b C=(end)c Ia=aAI Ib=bBI Ic=cCI I/=
[4-12] To B or not to B (7/9)
(once)b=Bb (once)B=(start)B Bc=cB Bb=bB Ba=bB B= a=c
[4-13] Center (10/10)
(once)=1 (end)1a=a (end)1b=b (end)1c=c 1a=(end)2 1b=(end)2 1c=(end)2 a2=(start)1 b2=(start)1 c2=(start)1
[4-14] Center 2 (20/15)
(once)=(start)/ (once)=(end)\ /a\= /b\= /c\= /a?= /b?= /c?= a\=?a b\=?b c\=?c /a=a! /b=b! /c=c! (once)!=/ (once)?=\ (once)!=/ (once)?=\ (once)!=/ (once)?=\
[4-15] Expansion (13/13)
(once)=(end)/ +/=/ (start)++=(end)+ (start)+a=(end)a (start)+b=(end)b (start)+c=(end)c +a=aa +b=bb +c=cc (once)=+ (once)=+++ (once)=+++++ (once)=+++++++ (once)=+++++++++ (once)=+++++++++++ /=
(once)=++++++ ++++++a=+++++a++++++ ++++++b=+++++b++++++ ++++++c=+++++c++++++ (once)+++++= (once)+++++=+ (once)+++++=++ (once)+++++=+++ (once)+++++=++++ +a=aa +b=bb +c=cc +=
[4-16] Merge (7/9)
A=(start)X B=(start)Y C=(start)Z Xa=(end)QQ Xb=(end)WQ Xc=(end)EQ Ya=(end)QW Yb=(end)WW Yc=(end)EW Za=(end)QE Zb=(end)WE Zc=(end)EE ,a=,A ,b=,B ,c=,C ,= Q=a W=b E=c
(once)=(end), (end),=(start), (start),a=(end)a (start),b=(end)b (start),c=(end)c ,,a=(end)a, ,,b=(end)b, ,,c=(end)c, ,=,,,
There is no 'C' folk!!! Wild!
(once)=(end), (end),=(start), (start),a=(end)a (start),b=(end)b ,,a=(end)a, ,,b=(end)b, ,=,,,
[5-1] Count (7/7)
(once)=i/ I/=/ Ii=iiI A/=/ Ai=iAa ai=ia a/=/a (end)0=(start)I (end)1=(start)IA i= /=
(once)=(end)x 0x=xx0 1x=Xxx1 X=(start)a x= 1= 0=
[5-2] A+1 (4/4)
(once)=(end)+ (start)+=1 1+=+0 0+=1
[5-3] A+B (16/9)
(once)=/ (start)C=(end)1X 10A=(start)1 01A=(start)1 00A=(start)0 11A=(start)C0 1A=(start)1 0A=(start)0 11X=1X0 01X=1 +1X=+1 (end)/<>= /+=/<> 1>=(start)>1 0>=(start)>0 >=(end)> 1T=(end)1A 0T=(end)0A +=T+
(once)+=++++++ (once)=(start)/ +1^=+1 11^=1^0 01^=1 (end)11+=1^00+ (end)10+=(start)1 (end)00+=(start)0 (end)01+=(start)1 (end)1+=(start)1 (end)0+=(start)0 1+=(end)1+ 0+=(end)0+ (end)+= +=(end)0+ /=
[5-4] A-B (7/8)
(once)=(start)/ (once)=(end)W 1H=(start)1 0C=C1 1C=0 01S=C1H 00S=(start)0 11S=(start)0 10S=(start)1 -W=T /T= 00M=0M0 10M=0M1 01M=1M0 11M=1M1 -1M=1S- -0M=0S- W=MW 1T=(start)T1 0T=(start)T0 (start)T=(end)T (start)0=
Special thanks to `SoMall-dumpling` for the base algorithm!
-1=-_- -0=-- _-=-__ -= 1__=0 0__=__1 (start)0=
[5-5] A*B (TODO)
[5-6] A/B (TODO)
[6-1] Hello again (4/4)
c=a b=a aa=a a=helloworld