→ البرمجة والكود
💻 البرمجة والكود 🤖 ChatGPT
Building a Rock-Paper-Scissors Game with Python
البرومبت
Act as a Python developer with 3+ years of experience in game development. Create a step-by-step guide for building a rock-paper-scissors game in Python. Include the following details: [1] Explain how to use `random.choice()` for the computer's move, [2] Describe how to validate user input (only 'rock', 'paper', or 'scissors'), and [3] Show how to determine the winner using conditional statements. Ensure the code is beginner-friendly with comments for clarity. Also, suggest [optional: adding a score tracker] or [optional: extending the game to best-of-5 rounds] for advanced learners. Provide the full code snippet at the end.

كيف تستخدم هذا البرومبت؟

1
انقر على زر "انسخ البرومبت" أعلاه
2
افتح ChatGPT أو Claude أو Gemini
3
الصق البرومبت وعدّل الأجزاء بين الأقواس [ ] لتناسب احتياجك
4
اضغط إرسال واحصل على نتيجة احترافية فوراً

أسئلة شائعة

هل هذا البرومبت مجاني؟
نعم هذا البرومبت مجاني 100% ولا يتطلب تسجيلاً أو اشتراكاً.
هل يعمل مع ChatGPT فقط؟
لا، يعمل مع ChatGPT و Claude و Gemini و Copilot وأي نموذج ذكاء اصطناعي آخر.
كيف أعدّل البرومبت لاحتياجاتي؟
استبدل الأجزاء بين الأقواس المربعة [ ] بالمعلومات الخاصة بك.