gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
مرحبا
- User
مرحبا
- Assistant
مرحبا بك! كيف يمكنني مساعدتك اليوم؟
- User
اكتب كود بلغة C للعبة
- Assistant
هذا مثال بسيط عن لعبة حجر ورقة مقص في لغة C:
#include <stdio.h> #include <stdlib.h> #include <time.h> // تضمين المكتبة المسئولة عن الأوقات العشوائية int main() { int playerChoice, computerChoice; srand(time(0)); // عرف توقيت بدء البرنامج printf("Choose 1 for rock, 2 for paper and 3 for scissors\n"); //تعليمات اللعبة scanf("%d", &playerChoice); // ادخال خيار اللاعب computerChoice = rand() % 3 + 1; // اختيار عشوائي لخيار الكمبيوتر بين 1 و3 if (playerChoice == computerChoice) { printf("Tie!"); // في حالة التعادل بين اللاعب والكمبيوتر } else if ((playerChoice == 1 && computerChoice == 3) || (playerChoice == 2 && computerChoice == 1) || (playerChoice == 3 && computerChoice == 2)) { printf("You win!"); // في حالة فوز اللاعب } else { printf("Computer wins!"); // في حالة فوز الكمبيوتر } return 0; }نأمل أن يكون هذا مفيداً!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- gpt-3.5-turbo-0301Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4o-mini-2024-07-18Compare side by side →
- gpt-3.5-turbo-0613Compare side by side →
- gpt-3.5-turbo-0613Compare side by side →
- gpt-3.5-turbo-0613Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4o-2024-08-06Compare side by side →
- gpt-3.5-turbo-0613Compare side by side →
- gpt-3.5-turbo-0613Compare side by side →
- gpt-3.5-turbo-0613Compare side by side →
- gpt-3.5-turbo-0613Compare side by side →