5 added 625 characters in body
source | link

Python 2, 121 bytes

lambda x,y,d="001155777702020202570044557777":[("%03d"%int(bin(int(o))[2:]),"---")[o=="3"]for o in d[x::10]+"3"+d[y::10]]

Try it online!

Reduced to 121 using a lambda after going back and re-reading the rules. Now outputs a list of lines.

Previous version with nicely formatted output:

Python 2, 156 153 147 141 bytes

x,y=input()
d="001155777702020202570044557777"
a=["%03d"%int(bin(int(o))[2:])for o in d[x::10]+d[y::10]]
for x in a[:3]+["---"]+a[3:]:print x

Try it online!

-3 with thanks to @NieDzejkob

Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot.

Python 2, 156 153 147 141 bytes

x,y=input()
d="001155777702020202570044557777"
a=["%03d"%int(bin(int(o))[2:])for o in d[x::10]+d[y::10]]
for x in a[:3]+["---"]+a[3:]:print x

Try it online!

-3 with thanks to @NieDzejkob

Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot.

Python 2, 121 bytes

lambda x,y,d="001155777702020202570044557777":[("%03d"%int(bin(int(o))[2:]),"---")[o=="3"]for o in d[x::10]+"3"+d[y::10]]

Try it online!

Reduced to 121 using a lambda after going back and re-reading the rules. Now outputs a list of lines.

Previous version with nicely formatted output:

Python 2, 156 153 147 141 bytes

x,y=input()
d="001155777702020202570044557777"
a=["%03d"%int(bin(int(o))[2:])for o in d[x::10]+d[y::10]]
for x in a[:3]+["---"]+a[3:]:print x

Try it online!

-3 with thanks to @NieDzejkob

Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot.

4 deleted 108 characters in body
source | link

Python 2, 156 153 147147 141 bytes

x,y=input()
d="001155777702020202570044557777"
for o in d[x::10]+"$"+d[y::10]:
 try:print"%03d"%(inta=["%03d"%int(bin(int(o))[2:]),)for o in d[x::10]+d[y::10]]
for exceptx in a[:print'3]+["---';continue"]+a[3:]:print x

Try it online!Try it online!

-3 with thanks to @NieDzejkob

Not intended as a serious contender. Just an experiment with binary, exceptions and string formatting. Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot. The $ is there to force an exception. It could actually be anything that cannot be converted to binary.

Python 2, 156 153 147 bytes

x,y=input()
d="001155777702020202570044557777"
for o in d[x::10]+"$"+d[y::10]:
 try:print"%03d"%(int(bin(int(o))[2:]),)
 except:print'---';continue

Try it online!

-3 with thanks to @NieDzejkob

Not intended as a serious contender. Just an experiment with binary, exceptions and string formatting. Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot. The $ is there to force an exception. It could actually be anything that cannot be converted to binary.

Python 2, 156 153 147 141 bytes

x,y=input()
d="001155777702020202570044557777"
a=["%03d"%int(bin(int(o))[2:])for o in d[x::10]+d[y::10]]
for x in a[:3]+["---"]+a[3:]:print x

Try it online!

-3 with thanks to @NieDzejkob

Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot.

3 deleted 4 characters in body
source | link

Python 2, 156 153153 147 bytes

x,y=input()
d="000020104124505525707727757777"d="001155777702020202570044557777"
for o in d[3*xd[x:][:3]+"$"+d[3*y10]+"$"+d[y:][:3]10]:
 try:print"%03d"%(int(bin(int(o))[2:]),)
 except:print'---';continue

Try it online!Try it online!

-3 with thanks to @NieDzejkob

Not intended as a serious contender. Just an experiment with binary, exceptions and string formatting. Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot. The $ is there to force an exception. It could actually be anything that cannot be converted to binary.

Python 2, 156 153 bytes

x,y=input()
d="000020104124505525707727757777"
for o in d[3*x:][:3]+"$"+d[3*y:][:3]:
 try:print"%03d"%(int(bin(int(o))[2:]),)
 except:print'---';continue

Try it online!

-3 with thanks to @NieDzejkob

Not intended as a serious contender. Just an experiment with binary, exceptions and string formatting. Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot. The $ is there to force an exception. It could actually be anything that cannot be converted to binary.

Python 2, 156 153 147 bytes

x,y=input()
d="001155777702020202570044557777"
for o in d[x::10]+"$"+d[y::10]:
 try:print"%03d"%(int(bin(int(o))[2:]),)
 except:print'---';continue

Try it online!

-3 with thanks to @NieDzejkob

Not intended as a serious contender. Just an experiment with binary, exceptions and string formatting. Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot. The $ is there to force an exception. It could actually be anything that cannot be converted to binary.

2 added 34 characters in body
source | link
1
source | link