Skip to main content
3 of 4
golfed a byte
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240

Japt, 13 12 bytes

9ó8_ì[1J0] Å

Try it online! Uses -R flag to put each item on its own line.

Explanation

9ó8_ì[1J0] Å
9ó8             Create the range [9, 9+8). [9, 10, ..., 16]
   _            Map each item in this range through this function:
    ì[1J0]         Convert the item to an array of base-3 digits,
                   mapping [0,1,2] to [1,-1,0]. [[-1, 1, 1], [-1, 1,-1], [-1, 1, 0],
                                                 [-1,-1, 1], [-1,-1,-1], [-1,-1, 0],
                                                 [-1, 0, 1], [-1, 0,-1]]
           Å       Remove the first item (gets rid of the leading -1).
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240