Jump to content

طلب شرح


Recommended Posts

Posted

السلام عليكم

كيفكم ان شاء الله بخير

ابي شرح للماثدوم

يعني مثلا

• كيف اخليه لما يضغط الزر يرسبن بمكان واذا ضغطت على الزر مره ثانية يرسبن بمكانن ثاني وهكذا

اتمنى فهمتووني وشكرا :mrgreen:

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
عربي لو سمحت

وش هو الماثدوم هذا ؟

math.random 

تنطق ماث راندوم

وش ماثدوم ؟ :redhotevil::redhotevil:

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted

نسوي تيبل كـ "

  
wizard = { 
    {0, 0 ,0}, 
    {1, 1 ,1}, 
    {2, 3 ,4}, 
} 
  

بدل الاصفار والواحد بالاحداثيات

وبنستعمل

unpack 

عشان نفك التيبل

والارقمنت = التيبل و [ رقم الرو او المكان الي بنفك عنه ]ء

فأحنا نبيه عشوائي بنستعمل رانثوم ع قولتك

( راندوم هي ض1 )

math.random 

الارقمنت ابتداء من و الى

يعني مثلاً ابتداء من 1 الى كم عدد الرو الي بتيبل

مثلاً عدد الرو 8 لاتحط 8

حط #wizard او بدل ويزارد بالتيبل

يعني الحين صار يعد كم واحد بالتيبل

فـ التجهيز او من الآخر

x,y,z = unpack(wizard[math.random(#wizard)]) 

اظن فيه طرق ثانية لاكن هذي الطريقة الي استعملها

well

Posted
عربي لو سمحت

وش هو الماثدوم هذا ؟

math.random 

تنطق ماث راندوم

وش ماثدوم ؟ :redhotevil::redhotevil:

تسألني أنا :redhotevil:

"A Year from Now You May Wish You Had Started Today"

Posted

يعطيكم العافية

واسف على الخطأ المطبعي :lol::lol:

فاتح من الجوال وما شفت اسمه بالويكي :mrgreen:

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...