Giter Site home page Giter Site logo

uc-gamedev-cw-2's Introduction

UC-GameDev-cw-2

If Statements

تمرين

  • أنشئ متغيرات بداخلها معلومات بطل خاص بك.
    heroName
    heroPower
  • أنشئ متغيرات بداخلها معلومات شرير خاص بك
    villainName
    villairPower
  • استخدم عمليات المقارنة لمعرفة من الأقوى أو إذا كان لهما نفس القوة.

Functions

تمرين

  • عرف متغير باسم playerSpeed
  • عرف دالة SetSpeed لا تسترجع أي بيانات، و مرر لها سرعة 2.5 … الدالة تجعل الplayerSpeed تساوي السرعة التي تم تمريرها للدالة, كما أنها تطبع كلاً من القيم القديمة والجديدة للمتغير playerSpeed.

بونص 🌟 :

  • عرف دالة CompareSpeed لا تسترجع أي بيانات، و مرر لها السرعة القديمة والسرعة الجديدة، الدالة تقارن بين السرعتين ثم تطبع السرعة الأكبر فقط, إذا كانت السرعات متساوية ، فإنها تطبع كليهما

Hint 🌟:

يمكنك تغيير الدالة القديمة

uc-gamedev-cw-2's People

Contributors

taleb-mac avatar wroodalrashidi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.