TEXT   264   0
   191 1.5 KB    51

Luna Clicker optimization test

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

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