I made a quick bookmarklet that advises you on what to buy next in Cookie Clicker. Unfortunately, the forum doesn't recognize the Javascript URL, so you will have to manually create the bookmark yourself by copying and pasting the below code. Just make sure the URL starts with "javascript:" because I know that Chrome removes it automatically when you paste it in the URL bar.


Code:
javascript:(function()%7Bvar%20max%20%3D%200%2C%20maxIndex%20%3D%200%3Bfor%20(var%20i%20%3D%200%3B%20i%20%3C%2010%3B%20i%2B%2B)%20%7Bvar%20cps%20%3D%20Game.ObjectsById%5Bi%5D.storedTotalCps%2FGame.ObjectsById%5Bi%5D.amount%3Bif%20(isNaN(cps))%20cps%20%3D%20Game.ObjectsById%5Bi%5D.storedCps%3Bvar%20cpspc%20%3D%20cps%2FGame.ObjectsById%5Bi%5D.price%3Bif%20(cpspc%20%3E%20max)%20%7Bmax%20%3D%20cpspc%3BmaxIndex%20%3D%20i%3B%7D%7Dalert(%22You%20should%20buy%20a(n)%20%22%20%2B%20Game.ObjectsById%5BmaxIndex%5D.name)%7D)()


Screenshot:



That is all.


Edit:
After searching if anyone else has made something similar, I found a project on GitHub that implements basically the same algorithm in Python. It's at pcrglennon/cookie-advisor.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement