Skip to content

Commit e2e6a87

Browse files
committed
fix
1 parent 5d66dfb commit e2e6a87

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

written/public/games/queens.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,19 @@
2020

2121
// Generate diagonal rules
2222
const directions = [
23-
[-1, -1], [-1, 1], [1, -1], [1, 1]
23+
[-1, -1],
24+
[-1, 1],
25+
[1, -1],
26+
[1, 1],
2427
];
2528

2629
for (let i = 1; i <= 10; i++) {
2730
for (let j = 1; j <= 10; j++) {
2831
directions.forEach(([di, dj]) => {
2932
cssRules += `
30-
#app:has(.row:nth-child(${i}) > *:nth-child(${j}):is(.cell.queen)) .row:nth-child(${i + di}) > *:nth-child(${j + dj}):after {
33+
#app:has(.row:nth-child(${i}) > *:nth-child(${j}):is(.cell.queen)) .row:nth-child(${
34+
i + di
35+
}) > *:nth-child(${j + dj}):after {
3136
content: "❌";
3237
}
3338
`;

0 commit comments

Comments
 (0)