الموضوع: Path Finding
عرض مشاركة واحدة
قديم 20-05-2015, 08:25 PM   #6

abdopasha2011
عضو مشارك



الصورة الرمزية abdopasha2011


• الانـتـسـاب » May 2011
• رقـم العـضـويـة » 87179
• المشـــاركـات » 5,878
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 100
abdopasha2011 جـيـدabdopasha2011 جـيـد

abdopasha2011 غير متواجد حالياً



افتراضي رد: Path Finding



كود PHP:
I've added support for using all teleporters. It'll look for the shortest amount of teleporters if one is required to get to the destinationThis means that it may not take the shortest route.

For 
example: if the starting town is Samarkand and the destination is Jupiter it will end up teleporting from:
Samarkand -> Constantinople -> Jupiter

Because that is technically shorter than
:
Samarkand -> Hotan -> Alex -> Ferry -> Jupiter

The 
final path may not be shorter but the number of teleporters is
الخلاصة المكان لو فيه عدد تليبورتات كتير البوت هيحاول يروح المكان بس هيسافر على قد ما يقدؤ حتى لو التليبورت القليل ده اطول فى الطريق عن انه يسافر كذا مرة والطريق طويل


توقيع abdopasha2011 :

My Face Book Page :عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]


رد مع اقتباس