Skip to main content
added 3 characters in body
Source Link
l4m2
  • 28.5k
  • 2
  • 25
  • 104

JavaScript (Node.js), 92 bytes

f=(x=200,n=0xe482b7c850b79b07c4080ea138643fd606dacb4523n)=>x?f(x-1,n/3n)+n%3n+[`
`[x%10]]:''

Try it online!

JavaScript (Node.js), 149146 bytes

x=>`EEEEEEEEEEx=>(x=`EEEEEEEEEE
`).repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
EEEEEEEEEE
${x}BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!Try it online!

JavaScript (Node.js), 92 bytes

f=(x=200,n=0xe482b7c850b79b07c4080ea138643fd606dacb4523n)=>x?f(x-1,n/3n)+n%3n+[`
`[x%10]]:''

Try it online!

JavaScript (Node.js), 149 bytes

x=>`EEEEEEEEEE
`.repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
EEEEEEEEEE
BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!

JavaScript (Node.js), 92 bytes

f=(x=200,n=0xe482b7c850b79b07c4080ea138643fd606dacb4523n)=>x?f(x-1,n/3n)+n%3n+[`
`[x%10]]:''

Try it online!

JavaScript (Node.js), 146 bytes

x=>(x=`EEEEEEEEEE
`).repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
${x}BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!

deleted 852 characters in body
Source Link
l4m2
  • 28.5k
  • 2
  • 25
  • 104

JavaScript (Node.js), 9492 bytes

f=(x=200,n=0xe482b7c850b79b07c4080ea138643fd606dacb4523n)=>x?f(--x-1,n/3n)+(x%10?'':`
`)+n%3n:''+n%3n+[`

Try it online!

hex is enough

JavaScript (Node.js), 95 94 bytes

f=(x=200)=>--x?[Buffer(",jPD%Pk`[x%10]]:OPb>PLKQQ6Od$YSBQQU")[x>>2]/3**(x%4)%3^0]+(x%10?'':`
`)+f(x):2

Try it online! GeneratorTry it online!

JavaScript (Node.js), 149 bytes

x=>`EEEEEEEEEE
`.repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
EEEEEEEEEE
BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!

JavaScript (Node.js), 94 bytes

f=(x=200,n=0xe482b7c850b79b07c4080ea138643fd606dacb4523n)=>x?f(--x,n/3n)+(x%10?'':`
`)+n%3n:''

Try it online!

hex is enough

JavaScript (Node.js), 95 94 bytes

f=(x=200)=>--x?[Buffer(",jPD%Pk:OPb>PLKQQ6Od$YSBQQU")[x>>2]/3**(x%4)%3^0]+(x%10?'':`
`)+f(x):2

Try it online! Generator

JavaScript (Node.js), 149 bytes

x=>`EEEEEEEEEE
`.repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
EEEEEEEEEE
BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!

JavaScript (Node.js), 92 bytes

f=(x=200,n=0xe482b7c850b79b07c4080ea138643fd606dacb4523n)=>x?f(x-1,n/3n)+n%3n+[`
`[x%10]]:''

Try it online!

JavaScript (Node.js), 149 bytes

x=>`EEEEEEEEEE
`.repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
EEEEEEEEEE
BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!

added 518 characters in body
Source Link
l4m2
  • 28.5k
  • 2
  • 25
  • 104

JavaScript (Node.js), 94 bytes

f=(x=200,n=0xe482b7c850b79b07c4080ea138643fd606dacb4523n)=>x?f(--x,n/3n)+(x%10?'':`
`)+n%3n:''

Try it online!

hex is enough

JavaScript (Node.js), 95 94 bytes

f=(x=200)=>--x?[Buffer(",jPD%Pk:OPb>PLKQQ6Od$YSBQQU")[x>>2]/3**(x%4)%3^0]+(x%10?'':`
`)+f(x):2

Try it online! Generator

JavaScript (Node.js), 149 bytes

x=>`EEEEEEEEEE
`.repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
EEEEEEEEEE
BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!

JavaScript (Node.js), 95 94 bytes

f=(x=200)=>--x?[Buffer(",jPD%Pk:OPb>PLKQQ6Od$YSBQQU")[x>>2]/3**(x%4)%3^0]+(x%10?'':`
`)+f(x):2

Try it online! Generator

JavaScript (Node.js), 149 bytes

x=>`EEEEEEEEEE
`.repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
EEEEEEEEEE
BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!

JavaScript (Node.js), 94 bytes

f=(x=200,n=0xe482b7c850b79b07c4080ea138643fd606dacb4523n)=>x?f(--x,n/3n)+(x%10?'':`
`)+n%3n:''

Try it online!

hex is enough

JavaScript (Node.js), 95 94 bytes

f=(x=200)=>--x?[Buffer(",jPD%Pk:OPb>PLKQQ6Od$YSBQQU")[x>>2]/3**(x%4)%3^0]+(x%10?'':`
`)+f(x):2

Try it online! Generator

JavaScript (Node.js), 149 bytes

x=>`EEEEEEEEEE
`.repeat(9)+`EEEEGGEEEE
EEEEBGGEEE
EBEEBBGGEE
EBEGBBBGBE
EEEEEEEEEE
BBGEBBGGBB
BBBEBBEGBB
BBBBBBBGBE
GGEBBBBBBB
GGEGBGGBBB
BBEBBGGGBB`

Try it online!

added 8 characters in body
Source Link
l4m2
  • 28.5k
  • 2
  • 25
  • 104
Loading
added 828 characters in body
Source Link
l4m2
  • 28.5k
  • 2
  • 25
  • 104
Loading
Source Link
l4m2
  • 28.5k
  • 2
  • 25
  • 104
Loading