Skip to main content
added 139 characters in body
Source Link
Steve Bennett
  • 8.1k
  • 23
  • 74

The 32 points of the compass are: N, NbE, NNE, NEbN, NE, NEbE, ENE, EbN, E, EbS, ESE, SEbE, SE, SEbS, SSE, SbE, S, SbW, SSW, SWbS, SW, SWbW, WSW, WbS, W, WbN, WNW, NWbW, NW, NWbN, NNW, NbW.

N, NbE, NNE, NEbN, NE, NEbE, ENE, EbN, E, EbS, ESE, SEbE, SE, SEbS, SSE, SbE, S, SbW, SSW, SWbS, SW, SWbW, WSW, WbS, W, WbN, WNW, NWbW, NW, NWbN, NNW, NbW

(SEbE is pronounced "Southeast by east"...)

Write a program or function that outputs all of these, in any order.

Input

None

Output

Each point of the compass must be output as correctly-cased string of 1-4 characters length, and must be separated from the other points of the compass in some manner (so a single string like 'NNENESE...' is not ok). Other than that, anything goes.

(Outputting letters that are not part of the points of the compass, or outputting points of the compass twice, is not allowed.)

Scoring

Code golf. Standard rules apply.

The 32 points of the compass are: N, NbE, NNE, NEbN, NE, NEbE, ENE, EbN, E, EbS, ESE, SEbE, SE, SEbS, SSE, SbE, S, SbW, SSW, SWbS, SW, SWbW, WSW, WbS, W, WbN, WNW, NWbW, NW, NWbN, NNW, NbW. (SEbE is pronounced "Southeast by east"...)

Write a program or function that outputs all of these, in any order.

Input

None

Output

Each point of the compass must be output as correctly-cased string of 1-4 characters length, and must be separated from the other points of the compass in some manner (so a single string like 'NNENESE...' is not ok). Other than that, anything goes.

Scoring

Code golf. Standard rules apply.

The 32 points of the compass are:

N, NbE, NNE, NEbN, NE, NEbE, ENE, EbN, E, EbS, ESE, SEbE, SE, SEbS, SSE, SbE, S, SbW, SSW, SWbS, SW, SWbW, WSW, WbS, W, WbN, WNW, NWbW, NW, NWbN, NNW, NbW

(SEbE is pronounced "Southeast by east"...)

Write a program or function that outputs all of these, in any order.

Input

None

Output

Each point of the compass must be output as correctly-cased string of 1-4 characters length, and must be separated from the other points of the compass in some manner (so a single string like 'NNENESE...' is not ok). Other than that, anything goes.

(Outputting letters that are not part of the points of the compass, or outputting points of the compass twice, is not allowed.)

Scoring

Code golf. Standard rules apply.

Became Hot Network Question
Source Link
Steve Bennett
  • 8.1k
  • 23
  • 74

Output the 32 points of the compass

The 32 points of the compass are: N, NbE, NNE, NEbN, NE, NEbE, ENE, EbN, E, EbS, ESE, SEbE, SE, SEbS, SSE, SbE, S, SbW, SSW, SWbS, SW, SWbW, WSW, WbS, W, WbN, WNW, NWbW, NW, NWbN, NNW, NbW. (SEbE is pronounced "Southeast by east"...)

Write a program or function that outputs all of these, in any order.

Input

None

Output

Each point of the compass must be output as correctly-cased string of 1-4 characters length, and must be separated from the other points of the compass in some manner (so a single string like 'NNENESE...' is not ok). Other than that, anything goes.

Scoring

Code golf. Standard rules apply.