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

@ -127,6 +127,15 @@ const allInteractives: Interactive[] = [
theme: 'Puzzles',
dateAdded: '2024-12-22'
},
{
id: 'subtraction-game',
title: 'The Subtraction Game',
description: 'A strategic two-player game where players take turns removing circles, with the last player to move winning.',
tags: ['strategy', 'two-player', 'game-theory', 'mathematical-games', 'nim-variant'],
path: '/subtraction-game',
theme: 'Games',
dateAdded: '2024-12-22'
},
{
id: 'knights-puzzle',
title: 'Knights Exchange Puzzle',