2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

Count the Liberties - Advanced

Octave, 157 bytes ...
user avatar
  • 26.6k
0 votes

Count the Liberties - Advanced

Charcoal, 88 bytes WS⊞υι≔Eυ⟦⟧θFLυFL§υι«≔§§υικη≔⁰ζF№αη«Eυ⭆μ⎇⁼ξηψξJκι¤*FLυFL§υι«Jνμ≧⁺∧№KV*⁼KK.ζ»⎚»⊞§θιζ»Eθ⪫ιω Try it online! Link is to verbose version of code. ...
user avatar
  • 143k
0 votes

Count the Liberties - Advanced

PARI/GP, 157 bytes ...
user avatar
  • 32.9k
1 vote

Count the Liberties - Advanced

Python3, 510 bytes: ...
user avatar
  • 2,500
3 votes

Count the Liberties - Advanced

05AB1E, 37 bytes Port of my APL answer. Really not the right language for the job but still slightly beats it. ˜©DδÊ®Ā^IāsнgLâDδαO2‹*ΔDøδ*OĀ}®›øOIgä Try it online!
user avatar
  • 53.4k
4 votes

Count the Liberties - Advanced

APL(Dyalog Unicode), 43 bytes SBCS Takes an integer matrix with 0 for blanks and any positive integer for a color (Supports any number of colors) ...
user avatar
  • 53.4k
3 votes

Count the Liberties - Advanced

JavaScript (ES7),  153 135 133  130 bytes Expects a matrix of integers with \$0\$ for empty, \$1\$ for white, \$2\$ for black. ...
user avatar
  • 166k
4 votes

Count the Liberties - Advanced

05AB1E, 85 81 bytes 2FINi(}Θ©˜ƶIgäΔ2Fø0δ.ø}2Fø€ü3}®*εεÅsyøÅs«à]+ÐU˜ê¦©vyX®y†AS:¾1:'a0:4FJTx:€Søí}S2¢: "If you have participated in the previous challenge, ...
user avatar

Top 50 recent answers are included