Add Subtraction Game interactive

Implement "The Subtraction Game" interactive with sliders for n and k, a play/reset button, turn-based gameplay between two players, and visual feedback including confetti for the winner.
This commit is contained in:
gpt-engineer-app[bot] 2025-08-22 06:24:19 +00:00
parent 4be4ab3ef5
commit 1ff24d145c
6 changed files with 237 additions and 0 deletions

View file

@ -52,6 +52,7 @@ import NQueensPuzzlePage from './pages/NQueensPuzzlePage';
import RulesOfInferencePlaygroundPage from './pages/RulesOfInferencePlaygroundPage';
import PebblePlacementGamePage from './pages/PebblePlacementGamePage';
import BulgarianSolitairePage from './pages/BulgarianSolitairePage';
import SubtractionGamePage from './pages/SubtractionGamePage';
const queryClient = new QueryClient();
@ -107,6 +108,7 @@ const App = () => (
<Route path="/games/gold-coin" element={<GoldCoinGamePage />} />
<Route path="/puzzles/pebble-placement" element={<PebblePlacementGamePage />} />
<Route path="/puzzles/bulgarian-solitaire" element={<BulgarianSolitairePage />} />
<Route path="/subtraction-game" element={<SubtractionGamePage />} />
<Route path="/puzzles/sikinia-parliament" element={<SikiniaParliamentPuzzlePage />} />
<Route path="/puzzles/plate-swap" element={<PlateSwapPuzzlePage />} />
<Route path="/puzzles/chessboard-repaint" element={<ChessboardRepaintPuzzlePage />} />