Add ternary number representation
Implement a ternary number representation interactive, similar to the binary one, with powers of three and toggles for 0, 1, or 2 copies of each number, up to the seventh power of 3. Include a random number generator up to 3280.
This commit is contained in:
parent
c30f406989
commit
49fa38cf44
2 changed files with 221 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import { Search } from "lucide-react";
|
|||
import Layout from "@/components/Layout";
|
||||
import InteractiveCard from "@/components/InteractiveCard";
|
||||
import BinaryNumberGame from "@/components/BinaryNumberGame";
|
||||
import TernaryNumberGame from "@/components/TernaryNumberGame";
|
||||
interface Interactive {
|
||||
id: string;
|
||||
title: string;
|
||||
|
|
@ -19,6 +20,13 @@ const interactives: Interactive[] = [{
|
|||
tags: ["binary", "numbers", "conversion", "representation"],
|
||||
component: BinaryNumberGame,
|
||||
greenScreenPath: "/binary-number-game"
|
||||
}, {
|
||||
id: "ternary-number-game",
|
||||
title: "Ternary Number Representation",
|
||||
description: "Learn how numbers are represented in ternary (base-3) format by toggling between 0, 1, or 2 copies of powers of three.",
|
||||
tags: ["ternary", "numbers", "conversion", "representation", "base-3"],
|
||||
component: TernaryNumberGame,
|
||||
greenScreenPath: "/ternary-number-game"
|
||||
}];
|
||||
const Foundations = () => {
|
||||
const [searchTerm, setSearchTerm] = useState("");
|
||||
|
|
@ -37,7 +45,7 @@ const Foundations = () => {
|
|||
Back to Discrete Math →
|
||||
</Link>
|
||||
</div>
|
||||
<BinaryNumberGame />
|
||||
<InteractiveComponent />
|
||||
|
||||
</div>
|
||||
</div>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue