Add routing for subtraction game
Add routes for the subtraction game to be accessible at `/themes/games` and `/index`.
This commit is contained in:
parent
24933851d7
commit
8c757b0c0d
2 changed files with 15 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import NimGame from '@/components/NimGame';
|
|||
import AssistedNimGame from '@/components/AssistedNimGame';
|
||||
import GoldCoinGame from '@/components/GoldCoinGame';
|
||||
import GuessingGame from '@/components/GuessingGame';
|
||||
import SubtractionGame from '@/components/SubtractionGame';
|
||||
|
||||
interface Game {
|
||||
id: string;
|
||||
|
|
@ -20,6 +21,13 @@ interface Game {
|
|||
}
|
||||
|
||||
const games: Game[] = [
|
||||
{
|
||||
id: 'subtraction-game',
|
||||
title: 'The Subtraction Game',
|
||||
description: 'A strategic two-player game where players take turns removing circles. Click on any of the last k circles to remove it and all circles to its right!',
|
||||
tags: ['strategy', 'two-player', 'logic', 'game-theory', 'subtraction'],
|
||||
component: SubtractionGame
|
||||
},
|
||||
{
|
||||
id: 'guessing-game',
|
||||
title: 'Number Guessing Game',
|
||||
|
|
|
|||
|
|
@ -7,6 +7,13 @@ import Layout from "@/components/Layout";
|
|||
|
||||
// All interactives data
|
||||
const allInteractives = [{
|
||||
id: 'subtraction-game',
|
||||
title: 'The Subtraction Game',
|
||||
description: 'A strategic two-player game where players take turns removing circles. Click on any of the last k circles to remove it and all circles to its right!',
|
||||
tags: ['strategy', 'two-player', 'logic', 'subtraction'],
|
||||
path: '/subtraction-game',
|
||||
theme: 'Games'
|
||||
}, {
|
||||
id: 'guessing-game',
|
||||
title: 'Number Guessing Game',
|
||||
description: 'Experience different search algorithms through interactive gameplay. Compare random, linear, and binary search strategies!',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue