Add balanced ternary interactive
Create a new interactive for balanced ternary number representation, including add/subtract buttons for each power of three.
This commit is contained in:
parent
49fa38cf44
commit
92ae14d796
2 changed files with 281 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import Layout from "@/components/Layout";
|
|||
import InteractiveCard from "@/components/InteractiveCard";
|
||||
import BinaryNumberGame from "@/components/BinaryNumberGame";
|
||||
import TernaryNumberGame from "@/components/TernaryNumberGame";
|
||||
import BalancedTernaryGame from "@/components/BalancedTernaryGame";
|
||||
interface Interactive {
|
||||
id: string;
|
||||
title: string;
|
||||
|
|
@ -27,6 +28,13 @@ const interactives: Interactive[] = [{
|
|||
tags: ["ternary", "numbers", "conversion", "representation", "base-3"],
|
||||
component: TernaryNumberGame,
|
||||
greenScreenPath: "/ternary-number-game"
|
||||
}, {
|
||||
id: "balanced-ternary-game",
|
||||
title: "Balanced Ternary Number Representation",
|
||||
description: "Explore balanced ternary using digits T (-1), 0, and 1. Add or subtract powers of three to match the target number.",
|
||||
tags: ["balanced-ternary", "numbers", "conversion", "representation", "base-3", "signed-digits"],
|
||||
component: BalancedTernaryGame,
|
||||
greenScreenPath: "/balanced-ternary-game"
|
||||
}];
|
||||
const Foundations = () => {
|
||||
const [searchTerm, setSearchTerm] = useState("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue