Skip to content

Commit a2def64

Browse files
juackerclaude
andcommitted
Rewrite N-Queens with React + Vite
Replace Vue 2 / Vue CLI 4 / Buefy with React 18 + Vite 5. Clean modern UI with CSS grid board, unicode queen pieces, and the original backtracking solver algorithm preserved. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ceaecec commit a2def64

22 files changed

Lines changed: 1744 additions & 28172 deletions

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ jobs:
3232

3333
- name: Build
3434
run: npm run build
35-
env:
36-
NODE_OPTIONS: "--openssl-legacy-provider"
3735

3836
- name: Upload artifact
3937
uses: actions/upload-pages-artifact@v3

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# nqueens
1+
# N-Queens
22

3-
A toy game to solve the n-queens problem
3+
Interactive puzzle solver for the classic N-Queens problem. Place queens on the board manually or let it solve for you.
44

55
**Try it live:** https://juacker.github.io/nqueens/
66

7-
![nqueens](./doc/nqueens.png)
7+
## Run locally
88

9-
## Run
109
```
11-
npm install && npm run serve
10+
npm install
11+
npm run dev
12+
```

babel.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>N-Queens</title>
7+
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><text y='24' font-size='24'>♛</text></svg>">
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.jsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)