Add N-Queens puzzle
Create an N-Queens puzzle where users can place queens on an n x n chessboard. The size of the board can be adjusted using a slider. A timer can be started before placing any queens. Clicking a square places a queen, and clicking a queen removes it. Attacked squares are visually indicated.
This commit is contained in:
parent
a52dceb089
commit
d050cbe520
5 changed files with 340 additions and 0 deletions
12
src/pages/NQueensPuzzlePage.tsx
Normal file
12
src/pages/NQueensPuzzlePage.tsx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import React from 'react';
|
||||
import NQueensPuzzle from '@/components/NQueensPuzzle';
|
||||
|
||||
const NQueensPuzzlePage = () => {
|
||||
return (
|
||||
<div className="min-h-screen bg-background">
|
||||
<NQueensPuzzle showSocialShare={true} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default NQueensPuzzlePage;
|
||||
Loading…
Add table
Add a link
Reference in a new issue