GeoFuck
GeoFuck is an esolang invented by User:None1, inspired by PoeticFuck.
What a program does only depends on where you are and the length of the program.
Translation
GeoFuck first takes your exact latitude and longitude as a pair of real numbers (north and east are positive, south and west are negative). For example, 12.34°N 56.78°W becomes (12.34,-56.78).
Then add 90 to the latitude and divide by 180. For example, 12.34 becomes 0.5685555555555556 (there are an infinite number of digits that are omitted here).
Then add 180 to the latitude and divide by 360. For example, -56.78 becomes 0.3422777777777778 (there are an infinite number of digits that are omitted here).
Then the decimal numbers are translated to PoeticFuck by repeating this procedure n times (Where n is the length of the program):
- Take the highest digit that's not taken before from fractional part of one of the number, the latitude is taken first, and then the longitude, and then the latitude, etc.
- Translate it into code:
1 + 2 - 3 > 4 < 5 , 6 . 7 [ 8 ] 9 ? 0 ;
For example, if the program is 5 bytes long and the numbers are 0.5685555555555556 and 0.3422777777777778, it translates to ,>.<]
.
At some locations, such as the North Pole, the result of this procedure is undefined, so GeoFuck will cause undefined behavior.
Examples
Cat program
aaaaa
It only works in some locations, e.g.: 12.24°N 90°E.