Code Jam 1.1 | لعبة وكود

Studio Description | وصف الاستوديو

Sima Al Kanawati

نعيش اليوم في عالم رقمي متجدد و متغير، فقد أصبح خلف جميع ما يحيط بنا من أعمال و تجارة و تسوق و علوم و اختراعات و صحة و طيران و حكومات برمجيات تديرها وتتحكم بها لذلك أصبحت البرمجة هي من العلوم الأساسية وأصبح تعلمها هو جزء أساسي لمواكبة التطور و تعلم أسس الذكاء الاصطناعي التي تعد البرمجة هي الركيزة الأساسية له وفي سياق متصل  فالبرمجة تعلمنا ان نفكر بنفس الطريقة التي تعمل بها الآلات  لذلك  فالمبرمج هو مفكر بالدرجة الأولى. 

في هذا الاستديو سيقوم الطلاب عن طريق لغة البرمجة c++ language بكتابة الألعاب التفاعلية التنافسية التي تمكن المستخدمين من لعبها وفي الوقت ذاته سيقوم الطلاب ببناء البرنامج (اللعبة) اللوحية التي تمت برمجتها عن طريق جميع المواد المتاحه وإضافة قسم للتطوير في الخطة التالية.

Today we live in a renewed and changing digital world, as it has become behind all that surrounds us in terms of business, commerce, shopping, science, invention, health, aviation and government’s Software that manages and controls it, so programming has become one of the basic sciences and its learning has become an essential part to keep pace with development And learning the foundations of artificial intelligence, which programming is the main pillar of it, and In a related context, programming teaches us to think in the same way that machines work, so a programmer is a thinker in the first place.

In this studio, students will, using the c++ language, write competitive interactive games that enable users to play, and at the same time students will build models that simulate the program (the game)”boardgame” that was programmed with all available materials.

Today, we live in an evolving and changing digital world. Behind all that surrounds us - in terms of business, commerce, shopping, science, invention, health, aviation and governments - are pieces of software that manage and control it. So, programming has become one of fundamental science and learning it has become essential to keep up the pace with development. As such, learning the foundations of artificial intelligence, of which programming is the main pillar, programming teaches us to think in the same way machines work, so a programmer is primarily a thinker.

In this studio, students shall, using the C++ language, write competitive interactive games that enable users to play, and at the same time students will build models that simulate the program (the game)”boardgame” that was programmed using all available materials while adding a part to be developed it in the next plan.


نعيش اليوم في عالم رقمي متجدد ومتغير، فقد أصبح خلف جميع ما يحيط بنا من أعمال، وتجارة، وتسوق، وعلوم، واختراعات، وصحة، وطيران وحكومات برمجيات تديرها وتتحكم بها. لذلك أصبحت البرمجة من العلوم الأساسية وأصبح تعلمها جزء أساسي لمواكبة التطور. كذلك تعلم أسس الذكاء الاصطناعي حيث البرمجة ركيزته الأولى يعلّمنا التّفكير بنفس الطريقة التي تعمل بها الآلات، لذا المبرمج هو مفكر بالدرجة الأولى. 

في هذا الاستديو, سيقوم الطلاب عن طريق لغة البرمجة  C++ language بكتابة ألعاب التفاعلية التنافسية التي تمكن المستخدمين من لعبها وفي الوقت ذاته سيقوم الطلاب ببناء البرنامج (اللعبة) اللوحية التي تمت برمجتها عن طريق جميع المواد المتاحة وإضافة قسم للتطوير في الخطة التالية.

Intro Presentation | العرض التقديمي

Sima Al Kanawati

Final Presentation

Jud Kadıoğlu and 3 OthersNour Aloliwi
Lin Muhammeddip
Malak Al-Touir
Test your iq.pptx

#include <iostream>

using namespace std;

int main()

{


 cout << "°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n";

 cout << "° °\n";

 cout << "° MONOBOLY`A HOŞ GELDIN °\n";

 cout << "° °\n";

    cout << "°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n";



  

   

 for(;;) {   

 int x;

 string w;

 cout << "1 ile 23 bir sayı seç :\n";

 cin >> x;

 if (x == 1)

 {

  cout << "dünyanın en yüksek kulesi nedir ?\n";

  cout << "a- Eyfel kulesi b- halife kulesi c- Mekke saat kulesi \n";

  cin >> w;


  if (w == "b")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";

   break ;

  }

 }


 if (x == 2)

 {

  cout << "insan vücudunda kaç tane kemik var ?\n";

  cout << "a- 202 b- 204 c- 206 \n";

  cin >> w;


  if (w == "c")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";


  break ;

  }

 }

if (x == 3)


    {

        cout << "nüfusa göre dünyanın en büyük ülke nedir?\n";

        cout << "a- çin b-hindistan c-rusya \n";

        cin >> w;


        if (w == "a")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }

if (x == 4)


    {

        cout << "basketbol takımda kaç oyuncu var ?\n";

        cout << "a- 10 b- 6 c- 5 \n";

        cin >> w;


        if (w == "c")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

 }

if (x == 5)


    {

        cout << "afrika kıtasındaki en büyük ülke nedir?\n";

        cout << "a- mısır b- jezayir c- madagaskar \n";

        cin >> w;


        if (w == "b")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }

 if (x == 6)

 {

  cout << "suriye hangi yılda cumhuriyet oldu ?\n";

  cout << "a- 1914 b- 1918 c- 1920 \n";

  cin >> w;


  if (w == "c")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";

  

break ;

 }

 }


 if (x == 7)

 {

  cout << "dünyanın en büyük hayvan nedir ?\n";

  cout << "a- mavi balina b- fil c- suaygırı \n";

  cin >> w;


  if (w == "a")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";


 break ;

  }

 }

if (x == 8)


    {

        cout << "dünyanın en uzun nehri nedir?\n";

        cout << "a- amazon nehri b- fırat nehri c- nil nehri \n";

        cin >> w;


        if (w == "c")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }

if (x == 9)


    {

        cout << "birinci dünya savaşı hangi yılda gerçekleşti ?\n";

        cout << "a- 1909 b- 1914 c-1911\n";

        cin >> w;


        if (w == "b")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }

if (x == 10)


    {

        cout << "güneş sisteminde kaç gezegen var ?\n";

        cout << "a-6 b- 8 c-9\n";

        cin >> w;


        if (w == "b")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }

 if (x == 11)

 {

  cout << "arapça dilinde kaç kelime var ?\n";

  cout << "a- 38 milyon kelime b- 41 milyon kelime c- 40 milyon kelime \n";

  cin >> w;


  if (w == "c")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";

  

break ;

 }

 }

 if (x == 12)

 {

  cout << "isveç alfabesinde kaç karakter var ?\n";

  cout << "a- 29 b- 26 c- 27 \n";

  cin >> w;


  if (w == "a")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";


 break ;

  }

 }

if (x == 13)


    {

        cout << "hangi hayvanın iskeleti yoktur?\n";

        cout << "a- yılan b- deniz anası c-sinek \n";

        cin >> w;


        if (w == "b")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }

if (x == 14)


    {

        cout << "dünyanın en küçük ülkesi nedir ?\n";

        cout << "a- fatikan b- bahreyn c-singapur \n";

        cin >> w;


        if (w == "a")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

        }

    }

if (x == 15)


    {

        cout << "dünyada en büyük kuş nedir?\n";

        cout << "a- devekuşu b- şahin kuşu c- kartal kuşu \n";

        cin >> w;


        if (w == "a")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }


 if (x == 16)

 {

  cout << "dünyanın en büyük okyanusu nedir ?\n";

  cout << "a-hint okyanusu b- basifik okyanusu c- atlantik okyanusu \n";

  cin >> w;


  if (w == "b")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";

  

break ;

 }

 }

 if (x == 17)

 {

  cout << "peygamber efendimiz hangi yılda doğdu ?\n";

  cout << "a- 511 b- 571 c- 564 \n";

  cin >> w;


  if (w == "b")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";


 break ;

 }

 }

if (x == 18)


    {

        cout << "insan vücudunda ne kadar su var ?\n";

        cout << "a- %71 b- %85 c- %80 \n";

        cin >> w;


        if (w == "c")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }

if (x == 19)


    {

        cout << "telefonun kim icat etti ?\n";

        cout << "a- Alexander Graham Bell b- tomas adison c- jon beers \n";

        cin >> w;


        if (w == "a")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }

if (x == 20)


    {

        cout << "ilk kişi hangi yılda Ay`a indi ?\n";

        cout << "a- 1972 b- 1969 c- 1966 \n";

        cin >> w;


        if (w == "b")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

    }

    }


 if (x == 21)

 {

  cout << "efendimiz muhammed ona vahiy geldiğinde kaç yaşındaydı ?\n";

  cout << "a- 37 b- 43 c- 40 \n";

  cin >> w;


  if (w == "c")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";

  

break ;

  }

 }

 if (x == 21)

 {

  cout << "sudan`nın başkenti nedir ?\n";

  cout << "a- hurtum b- sanaa c- maskat \n";

  cin >> w;


  if (w == "a")

  {

   cout << "doğru\n";

  }

  else

  {

   cout << "yanlış\n";


 break ; 

  }

 }

if (x == 22)


    {

        cout << "kurân_ı kerimde kaç sure var?\n";

        cout << "a- 118 b- 114 c-112 \n";

        cin >> w;


        if (w == "b")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

        }

    }

if (x == 23)


    {

        cout << "fotbul sahası alanı kaç ?\n";

        cout << "a- 5700 b- 6100 c-7140 \n";

        cin >> w;


        if (w == "b")

        {

            cout << "doğru\n";

        }

        else

        {

            cout << "yanlış\n";

        

        break ;

        }

    }

        

          }

 }

   

المشروع النهائي

Rwah saffour and Hawla bakkar

Among us in real life

خولة بكار              رؤى سفور

#include<iostream>

using namespace std;


int main() 

{

    

رؤى سفور

cout<<".________________________. "<<endl;     

cout<<"| * * * |"<<endl;

cout<<"| * * |"<<endl;

cout<<"| * AMONG US * | "<<endl;

cout<<"| * * * | "<<endl;

cout<<"| * * * * | "<<endl;

cout<<"|________________________|"<<endl;

        




    int x, y;

    string ad;

    string katil,w,i;


    cout<<"senin adın ne?? "<<endl;

    cin>>ad;

    cout<< "Kaç yașındasın?? "<<endl;

    cin>>x;

    if( x>=10)

    {

        cout<<" oyna bilirsin "<<endl;

    }

    else

         {   

    cout<<"oynamazsın"<<endl;

    return 0 ;

    }  

cout<<"1'den 20'ye kadar bir rakam seçin"<<endl;    

          cin>>y;

        if(y<5)  

     {

  cout<<"sen katilsin " <<endl;

  } 

   else  

          {

    cout<<"sen bir vatandaşsın "<<endl;  

    cout<<"lambayı kim icad etti"<<endl;

cout<<"A-AMBER B-Thomas edison C-aflaton"<<endl; 

cin>>w; 

 if(w=="B") 

{

cout<<"doğru"<<endl;

cout<<"10+5-5+7-20="<<endl;

cout<<"A-(-3) B-(2) C-(1)"<<endl;

cin>>i;if(i=="A")

{

cout<<"doğru "<<endl;

}

else 

{

cout<<"yanlış "<< endl;

cout<<"tekrar edin yapabilirsiniz "<<endl ;

}

                }

     else

{

cout<<"yanlış"<<endl; 

cout<<"tekrar edin yapabilirsiniz "<<endl;


}    

  

    }  

        

    

            

            

            

               } رؤى سفور +خولة بكار 

قوانين اللعبة

Rwah saffour

Among us عالواقع

عدد الاعبين من 5لل20

أدوات اللعب ورق عادي قلم وصناديق اول صندوق  نقوم بكتابة بخمس ورقت كلمة قاتل وب15 نكتب موطن عادي ونغلق الأوراق ونصعهم في الصندوق و من ثم نقوم بصنع صندوق اخر نضع فيه اسئلة  بسيطة ونسمي هذا الصندوق صندوق المهام و تكون اسئلة اختيار و نصنع صناديق للاجابة بحيث اذا كان الجواب الذي بسؤالa فيضع الجواب بصندوق A و هكذاو وبعدكل ذلك يتم وضع حركة الكل يكون لديه علم بها و هي من صفات القاتل ويتم سحب الصندوق الأول فاذا كان الشخص مواطن عادي فيجب عليه أن يحل المهام واما ان كان قاتل يجب عليه أن ينزع المهام من خلال ان يبدو مواطن عادي و يحاول ان يبحث عن باقي القتلة من خلال فعل الحركة التي الكل يعرف انها للقتل فإن فعلها للقاتل يسكت القاتل و اما ان فعلها للمواطن العادي فينسحب المواطن من فوره و يستمر الأمر إلى أن يعرف كل القاتلين أنفسهم و هكذا تنتهي اللعبة

A stroke of luck

Muzna Fattal
Sample Text
Sample Text
Sample Text
Sample Text
Sample Text

ضربة حظ

- BEYAN AL OMAR

- RAMA AL OMAR 

- MUZNA FATTAL

#include <iostream>


using namespace std;


int main()

{



    string c;

    string o;

    string d;

    string e;


    int w;


     cout<<"\t\t\t\t*******************************************"<<endl;

     cout<<"\t\t\t\t*                                                             *"<<endl;

     cout<<"\t\t\t\t*           Welcome to our game             *"<<endl;

     cout<<"\t\t\t\t*                                                             *"<<endl;

     cout<<"\t\t\t\t*  answer the questions below to play  *"<<endl;

     cout<<"\t\t\t\t*                                                              *"<<endl;

     cout<<"\t\t\t\t*                                                              *"<<endl;

     cout<<"\t\t\t\t*******************************************"<<endl;


    string name1,name2,name3,name4;

    int age1,age2,age3,age4;


        cout << "player (1) Enter your name" << endl;

        cin >> name1;

        cout << "player (1) Enter your age" << endl;

        cin >> age1;


        if(age1<=10 )

        {

         cout<<"you can not play"<<endl;

         return 0;

        }


       else

       {

         cout<<"You can play"<<endl;

       }


        cout << "player (2) Enter your name" << endl;

        cin >> name2;

        cout << "player (2) Enter your age" << endl;

        cin >> age2;


        if(age2<=10 )

        {

         cout<<"you can not play"<<endl;

         return 0;

        }


        else

       {

         cout<<"You can play"<<endl;

       }


        cout << "player (3) Enter your name" << endl;

        cin >> name3;

        cout << "player (3) Enter your age" << endl;

        cin >> age3;


        if(age3<=10 )

        {

         cout<<"you can not play"<<endl;

         return 0;

        }


        else

       {

         cout<<"You can play"<<endl;

       }

        cout << "player (4) Enter your name" << endl;

        cin >> name4;

        cout << "player (4) Enter your age" << endl;

        cin >> age4;


        if(age4<=10 )

        {

         cout<<"you can not play"<<endl;

         return 0;

        }


        else

       {

         cout<<"You can play"<<endl;

       }


     cout<<"\t\t\t\t========================================"<<endl;

     cout<<"\t\t\t\t=                                                                                   ="<<endl;

     cout<<"\t\t\t\t=                                                                                   ="<<endl;

     cout<<"\t\t\t\t=                   you can start playing                              ="<<endl;

     cout<<"\t\t\t\t=                                                                                   ="<<endl;

     cout<<"\t\t\t\t=                                                                                   ="<<endl;

     cout<<"\t\t\t\t=                                                                                   ="<<endl;

     cout<<"\t\t\t\t========================================"<<endl;


         cout<<"how many letters the word consists of?"<<endl;

         cin>>w;


         cout<<"enter your first player word."<<endl;

         cin>>c;

         if(c.length()==w )


       {

         cout<<"it's true"<<endl;

         cout<<c<<endl;

         }


          else

        {

          cout<<"it's false"<<endl;

          return 0;

        }



        cout<<"enter your second player word."<<endl;

        cin>>o;


        if(o.length()==w )

            {

         cout<<"it's true"<<endl;

         cout<<o<<endl;

          }


         else

        {

          cout<<"it's false"<<endl;

          return 0;

        }


        cout<<"enter your third player word."<<endl;

        cin>>d;


        if(d.length()==w )

            {

         cout<<"it's true"<<endl;

         cout<<d<<endl;

          }

          else

        {

          cout<<"it's false"<<endl;

          return 0;

        }


        cout<<"enter your fourth player word."<<endl;

        cin>>e;


        if(e.length()==w )

            {

         cout<<"it's true"<<endl;

         cout<<e<<endl;

          }

          else

        {

          cout<<"it's false"<<endl;

          return 0;

        }


        }


Tic Tac Toe

Amro Al-kur

#include <iostream>

using namespace std;


char square[10] = {'o','1','2','3','4','5','6','7','8','9'};


int checkwin();

void board();


int main()

{

    int player = 1,i,choice;


    char mark;

    do

    {

        board();

        player=(player%2)?1:2;


        cout << "Player " << player << ", enter a number:  ";

        cin >> choice;


        mark=(player == 1) ? 'X' : 'O';


        if (choice == 1 && square[1] == '1')


            square[1] = mark;

        else if (choice == 2 && square[2] == '2')


            square[2] = mark;

        else if (choice == 3 && square[3] == '3')


            square[3] = mark;

        else if (choice == 4 && square[4] == '4')


            square[4] = mark;

        else if (choice == 5 && square[5] == '5')


            square[5] = mark;

        else if (choice == 6 && square[6] == '6')


            square[6] = mark;

        else if (choice == 7 && square[7] == '7')


            square[7] = mark;

        else if (choice == 8 && square[8] == '8')


            square[8] = mark;

        else if (choice == 9 && square[9] == '9')


            square[9] = mark;

        else

        {

            cout<<"Invalid move ";


            player--;

            cin.ignore();

            cin.get();

        }

        i=checkwin();


        player++;

    }while(i==-1);

    board();

    if(i==1)


        cout<<"==>\aPlayer "<<--player<<" win ";

    else

        cout<<"==>\aGame draw";


    cin.ignore();

    cin.get();

    return 0;

}


int checkwin()

{

    if (square[1] == square[2] && square[2] == square[3])


        return 1;

    else if (square[4] == square[5] && square[5] == square[6])


        return 1;

    else if (square[7] == square[8] && square[8] == square[9])


        return 1;

    else if (square[1] == square[4] && square[4] == square[7])


        return 1;

    else if (square[2] == square[5] && square[5] == square[8])


        return 1;

    else if (square[3] == square[6] && square[6] == square[9])


        return 1;

    else if (square[1] == square[5] && square[5] == square[9])


        return 1;

    else if (square[3] == square[5] && square[5] == square[7])


        return 1;

    else if (square[1] != '1' && square[2] != '2' && square[3] != '3'

                    && square[4] != '4' && square[5] != '5' && square[6] != '6'

                  && square[7] != '7' && square[8] != '8' && square[9] != '9')


        return 0;

    else

        return -1;

}



void board()

{

    system("cls");

    cout << "\n\n\t\t\twelcome to amro's Tic Tac Toe game\n\n";


    cout << "Player 1 (X)  -  Player 2 (O)" << endl << endl;

    cout << endl;


    cout << "     |     |     " << endl;

    cout << "  " << square[1] << "  |  " << square[2] << "  |  " << square[3] << endl;


    cout << "_____|_____|_____" << endl;

    cout << "     |     |     " << endl;


    cout << "  " << square[4] << "  |  " << square[5] << "  |  " << square[6] << endl;


    cout << "_____|_____|_____" << endl;

    cout << "     |     |     " << endl;


    cout << "  " << square[7] << "  |  " << square[8] << "  |  " << square[9] << endl;


    cout << "     |     |     " << endl << endl;

}


لعبة البرجيس

ضياء طباع    محمد الشايب    أحمد حجازي

#include <iostream>

#include<ctime>

using namespace std;

int main()

{

    string name;

    int age;

    cout << "    __" << endl;

    cout << "    | |>      Ф" << endl;

    cout << "    Гl        Гl " << endl;

    cout << "    Гl        Гl" << endl;

    cout << "    Гl        Гl" << endl;

    cout << "   ИMМN      ИMМN" << endl;

    cout << "Enter your name:\n";

    cin >> name;

    cout << "Enter your age:\n";

    cin >> age;

    if (age > 10)

    {

        cout << "You can play  \n";

        cout << "To start a game you will got a random number between 1 and 6:\n";

        srand(time(0));

        int x = rand() % 6 + 1;

        cout << x << endl;

        if (x == 1)

        {

            cout << "Pleas move 11 step\n ";

        }

        if (x == 2)

        {

            cout << "Pleas move 2 step\n ";

        }

        if (x == 3)

        {

            cout << "Pleas move 3 step\n ";

        }

        if (x == 4)

        {

            cout << "Pleas move 4 step\n ";

        }

        if (x == 5)

        {

            cout << "Pleas move 9 step\n ";

        }

        if (x == 6)

        {

            cout << "Pleas move 12 step\n ";

        }


    }

    else

    {

        cout << " You can not play!\n";

            return 0;

    }


    


}

Executioner thief game

Bilal Havut and Adeeb Betar

Executioner thief game

Adeeb Betar