Skip to main content
-1 byte
Source Link
whqwert
  • 281
  • 2
  • 5

Nibbles, 15 1414 13 bytes

=%+=+.@o$2%`D@o$%`D-21~8fd905cff4e

Attempt This Online!Attempt This Online!

Explanation

    @                         - input
   . o$                       - as codepoints
  +                           - sum
 %     2                      - modulo 2
=       %`D-21~8fd905cff4e    - index in compressed list ["light", "dark"] (wrapped)

-1 byte2 bytes thanks to Dominic van Essen

Nibbles, 15 14 bytes

=%+.@o$2%`D-21~8fd905cff4e

Attempt This Online!

Explanation

    @                         - input
   . o$                       - as codepoints
  +                           - sum
 %     2                      - modulo 2
=       %`D-21~8fd905cff4e    - index in compressed list ["light", "dark"]

-1 byte thanks to Dominic van Essen

Nibbles, 15 14 13 bytes

=+.@o$%`D-21~8fd905cff4e

Attempt This Online!

Explanation

   @                      - input
  . o$                    - as codepoints
 +                        - sum
=     %`D-21~8fd905cff4e  - index in compressed list ["light", "dark"] (wrapped)

-2 bytes thanks to Dominic van Essen

-1 byte
Source Link
whqwert
  • 281
  • 2
  • 5

Nibbles, 1515 14 bytes

=%+.@o$2"light""dark"@o$2%`D-21~8fd905cff4e

Attempt This Online!Attempt This Online!

Explanation

    @                         - input
   . o$                       - as codepoints
  +                           - sum
 %     2                      - modulo 2
=       "light""dark"%`D-21~8fd905cff4e    - index in compressed list ["light", "dark"]

-1 byte thanks to Dominic van Essen

Nibbles, 15 bytes

=%+.@o$2"light""dark"

Attempt This Online!

Explanation

    @                    - input
   . o$                  - as codepoints
  +                      - sum
 %     2                 - modulo 2
=       "light""dark"    - index in ["light", "dark"]

Nibbles, 15 14 bytes

=%+.@o$2%`D-21~8fd905cff4e

Attempt This Online!

Explanation

    @                         - input
   . o$                       - as codepoints
  +                           - sum
 %     2                      - modulo 2
=       %`D-21~8fd905cff4e    - index in compressed list ["light", "dark"]

-1 byte thanks to Dominic van Essen

Fixed explanation
Source Link
Dominic van Essen
  • 36.4k
  • 2
  • 22
  • 60

Nibbles, 15 bytes

=%+.@o$2"light""dark"

Attempt This Online!

Explanation

    @                    - input
   . o o$                  - as codepoints
  +                      - sum
 %    $2 2                 - modulo 2
=       "light""dark"    - index in ["light", "dark"]

Nibbles, 15 bytes

=%+.@o$2"light""dark"

Attempt This Online!

Explanation

    @                    - input
   . o                   - as codepoints
  +                      - sum
 %    $2                 - modulo 2
=       "light""dark"    - index in ["light", "dark"]

Nibbles, 15 bytes

=%+.@o$2"light""dark"

Attempt This Online!

Explanation

    @                    - input
   . o$                  - as codepoints
  +                      - sum
 %     2                 - modulo 2
=       "light""dark"    - index in ["light", "dark"]
Source Link
whqwert
  • 281
  • 2
  • 5
Loading