79626685

Date: 2025-05-17 15:19:57
Score: 1.5
Natty:
Report link

import { useState } from 'react'; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button";

export default function RayaqGame() { const [step, setStep] = useState(0); const [score, setScore] = useState(0);

const handleAnswer = (correct) => { if (correct) setScore(score + 1); setStep(step + 1); };

const puzzles = [ { question: "في غرفة يوجد ثلاث مصابيح، وخارجها ثلاث مفاتيح. يمكنك الدخول مرة واحدة فقط. كيف تعرف أي مفتاح لأي مصباح؟", answers: [ { text: "أشغل مفتاحين، أطفئ واحد، وأدخل", correct: true }, { text: "أجرب كل المفاتيح عشوائيًا", correct: false }, { text: "أفتح الباب قليلاً وأراقب", correct: false }, ], }, { question: "ما الشيء الذي كلما أخذت منه، كبر؟", answers: [ { text: "الثقب", correct: true }, { text: "الظل", correct: false }, { text: "الحفرة", correct: false }, ], }, ];

return ( لعبة الرايق {step < puzzles.length ? ( <p className="text-lg

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Abdallah Osama