This is the robber's thread. The cop's thread is here.
A snake matrix is a square matrix that follows this pattern:
3-by-3:
1 2 3 6 5 4 7 8 9 and 4-by-4:
1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 Your task is to write a code that takes an input n and creates such a matrix, in the same language as a cop post, and with a code that matches the cop's regex. The output format of your code must match the output format of the cop's code.
Please leave a comment under the Cop's post to indicate that you have cracked it.
Winning criterion:
The winner will be the user that has cracked the most submissions. In case of a tie, then there will be multiple winners.