Done!
After dinner, I simply asked ChatGPT to generate the positional arrays using a backtracking algorithm, and it had some python code in it's training data.
ChatGPT 4o
Here are the 16 positional arrays representing the queen’s movements for each position on the 4x4 board:
Position 0 (Top-Left Corner):
[1, 1, 1, 1]
[1, 1, 0, 0]
[1, 0, 1, 0]
[1, 0, 0, 1]
Position 1 (Top-Middle Left):
[1, 1, 1, 1]
[1, 1, 1, 0]
[0, 1, 0, 1]
[0, 1, 0, 0]
Position 2 (Top-Middle Right):
[1, 1, 1, 1]
[0, 1, 1, 1]
[1, 0, 1, 0]
[0, 0, 1, 0]
Position 3 (Top-Right Corner):
[1, 1, 1, 1]
[0, 0, 1, 1]
[0, 1, 0, 1]
[1, 0, 0, 1]
Position 4 (Middle-Left):
[1, 1, 0, 0]
[1, 1, 1, 1]
[1, 1, 0, 0]
[1, 0, 1, 0]
Position 5 (Center Left):
[1, 1, 1, 0]
[1, 1, 1, 1]
[1, 1, 1, 0]
[0, 1, 0, 1]
Position 6 (Center Right):
[0, 1, 1, 1]
[1, 1, 1, 1]
[0, 1, 1, 1]
[1, 0, 1, 0]
Position 7 (Middle-Right):
[0, 0, 1, 1]
[1, 1, 1, 1]
[0, 0, 1, 1]
[0, 1, 0, 1]
Position 8 (Bottom-Left Corner):
[1, 0, 1, 0]
[1, 1, 0, 0]
[1, 1, 1, 1]
[1, 1, 0, 0]
Position 9 (Bottom-Middle Left):
[0, 1, 0, 1]
[1, 1, 1, 0]
[1, 1, 1, 1]
[1, 1, 1, 0]
Position 10 (Bottom-Middle Right):
[1, 0, 1, 0]
[0, 1, 1, 1]
[1, 1, 1, 1]
[0, 1, 1, 1]
Position 11 (Bottom-Right Corner):
[0, 1, 0, 1]
[0, 0, 1, 1]
[1, 1, 1, 1]
[0, 0, 1, 1]
Position 12 (Bottom-Left Corner):
[1, 0, 0, 1]
[1, 0, 1, 0]
[1, 1, 0, 0]
[1, 1, 1, 1]
Position 13 (Center Left):
[0, 1, 0, 0]
[0, 1, 0, 1]
[1, 1, 1, 0]
[1, 1, 1, 1]
Position 14 (Center Right):
[0, 0, 1, 0]
[1, 0, 1, 0]
[0, 1, 1, 1]
[1, 1, 1, 1]
Position 15 (Bottom-Right Corner):
[1, 0, 0, 1]
[0, 1, 0, 1]
[0, 0, 1, 1]
[1, 1, 1, 1]
These arrays show all possible moves for a queen at each position on the 4x4 board. Let me know if this aligns with your expectations! 
Seems OK af first glance. Here is the same data as a hash of 1D arrays:
Positional data in a ruby hash
queen_moves_1d = {
'Position 0' => [1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1],
'Position 1' => [1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0],
'Position 2' => [1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0],
'Position 3' => [1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1],
'Position 4' => [1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0],
'Position 5' => [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1],
'Position 6' => [0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0],
'Position 7' => [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1],
'Position 8' => [1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0],
'Position 9' => [0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0],
'Position 10' => [1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1],
'Position 11' => [0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1],
'Position 12' => [1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1],
'Position 13' => [0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1],
'Position 14' => [0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1],
'Position 15' => [1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1]
}
Need to confirm, but I think these arrays may be correct, looking at it visually. Need more time later to check.