final presentation | العرض التقديمي الأخير

لعبة البرجيس

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

#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;

    }


    


}