TEXT   241   0
   191 1.5 KB    51

Luna Clicker optimization test

By Guest
Created: 2022-02-10 19:18:17
Expiry: Never

  1. ## The strategy assumes buying only Purple Smart until (You) reach the target and then switching to massing Princess Condense
  2. ## Some other ponies have better DPS per cost (especially Ponka Po) but buying them is wildly inefficient compared to more clicking
  3. ## Excuse the semicolons, I haven't written Python code in a while
  4.  
  5. def clicker_func_multibuy(clicks_per_second, threshold):
  6. gold = 0;
  7. gold_per_click=1;
  8. twig_cost = 10;
  9. seconds = 0;
  10. barrier = 1000000;
  11. condense_dps = 0
  12.  
  13. while (barrier > 0):
  14. gold += clicks_per_second*gold_per_click;
  15. barrier -= (clicks_per_second*gold_per_click + condense_dps);
  16.  
  17. if (gold_per_click < threshold):
  18. if (gold_per_click < 10 and gold > twig_cost):
  19. gold -= twig_cost;
  20. gold_per_click += 2;
  21. twig_cost += 10;
  22. seconds += 1;
  23. elif (gold_per_click < 50 and gold > (twig_cost*5+100)):
  24. gold -= (twig_cost*5+100);
  25. gold_per_click += 10;
  26. twig_cost += 50;
  27. seconds += 2;
  28. elif (gold > (twig_cost*10+450)):
  29. gold -= (twig_cost*10+450);
  30. gold_per_click += 20;
  31. twig_cost += 100;
  32. seconds += 3;
  33.  
  34. elif (gold > 10000):
  35. gold -= 10000;
  36. condense_dps += 1000;
  37. seconds += 1;
  38.  
  39. seconds += 1;
  40. print(" Target -", threshold, "g/click, win in ", seconds, "seconds! ", seconds);
  41.  
  42.  
  43.  
  44.  
  45.  
  46. start = 50;
  47. clicks_per_second = 8;
  48. print("For", clicks_per_second, "clicks per seconds:");
  49. for i in range(21):
  50. clicker_func_multibuy(clicks_per_second, start + 10*i);

Yandere Thread - Yandere Applejack (completed)

by Guest

Bonding with Nature

by Guest

The Long and Short of It (RGRE)

by Guest

incest relationships piece of the whole pie (lewd) by Frostybox[...]

by Guest

incest thread piece of the (non-canon) pie, limestone's pie by[...]

by Guest