import { Button } from "@/components/ui/button"; import { motion } from "framer-motion"; import { useState } from "react"; import { HighScoreBoard } from "../HighScoreBoard"; import { Dialog, DialogContent } from "@/components/ui/dialog"; interface WelcomeScreenProps { onStart: () => void; } export const WelcomeScreen = ({ onStart }: WelcomeScreenProps) => { const [showHighScores, setShowHighScores] = useState(false); return ( <> Think in Sync This game is a variation of a classical childrens game. You will be given a secret word. Your goal is to describe this secret word so that an AI can guess it. However, you are only allowed to say one word at the time, taking turns with another AI. Start Game ⏎ setShowHighScores(true)} variant="outline" className="w-full text-lg" > View Leaderboard 🏆 setShowHighScores(false)} onPlayAgain={onStart} /> > ); };
This game is a variation of a classical childrens game. You will be given a secret word. Your goal is to describe this secret word so that an AI can guess it. However, you are only allowed to say one word at the time, taking turns with another AI.