- 현재 방향 d에 상관없이 한 방향으로 회전 ```cpp for (int i = 0; i < 4; i++) { int nd = (d + i) % 4; int ny = y + dy[nd]; int nx = x + dx[nd]; } ```