Ant Colony: what did each model build?
The prompt every model got
Build an ant colony simulator on a Canvas. The nest is in the middle and three food sources sit near the corners. 2,000 ants leave the nest and wander. When they find food they carry it home. They lay two kinds of pheromone, one leading to food and one leading home, which the other ants follow and which slowly evaporate. Pheromones show as faint coloured trails. Dragging the mouse draws walls the ants cannot cross, a right-click drops new food, and sliders change the evaporation rate and the simulation speed. A stats panel shows the number of ants, the food collected and the FPS. It must run smoothly with 2,000 ants.
Original (Persian)
یک شبیهساز کلونی مورچه با Canvas بساز. لونه وسط صفحهست و ۳ منبع غذا نزدیک گوشهها. ۲۰۰۰ مورچه از لونه بیرون میان و میگردن. وقتی غذا پیدا کنن برمیگردن به لونه. دو نوع فرومون جا میذارن، یکی به سمت غذا و یکی به سمت خونه، که بقیه مورچهها دنبالش میکنن و کمکم تبخیر میشه. فرومونها به شکل ردهای رنگی کمرنگ دیده بشن. کاربر با کشیدن موس دیوار میکشه که مورچهها ازش رد نمیشن، با کلیک راست غذای جدید میذاره، و با اسلایدرها نرخ تبخیر و سرعت شبیهسازی رو تغییر میده. یه پنل آمار تعداد مورچهها، غذای جمعشده و FPS رو نشون بده. با ۲۰۰۰ مورچه باید روان اجرا بشه.
10 of 10 checks · full report card and the build →
10 of 10 checks · full report card and the build →
10 of 10 checks · full report card and the build →
9 of 10 checks · full report card and the build →
9 of 10 checks · full report card and the build →
9 of 10 checks · full report card and the build →Run two builds side by side: compare two models on this challenge