Here's an algorithm that automatically evolves algorithms which optimize playing an idle game. Name is short for "Idle [Idle optimization algorithm] evolution algorithm". The game is very simple: make as much money as possible within a time limit by buying Generators. Each algorithm has a set of instructions to perform in a loop. The numbers represent the next Generator to purchase, and the algorithm will wait until it can buy it to go to the next one. The score is the total amount of money generated during a specified number of steps. Controls: > Press the ✏ (edit) buttons to set parameters: ~> Amount is the number of algorithms created ~> Steps is the number of ticks each algorithm plays ~> Generations is the total number of cycles to be executed during PLAY > Press the ↻ (reset) / ⇄ (shuffle) buttons at the top to change the generators accordingly. Shuffle randomizes their production, cost, and how many there are (3-6). > Press the ⏯ (step) button to let all algorithms play once. > Press the ⬆ (evolve) button to kill the 50% worst algorithms and "birth" new ones from the others. They can mutate or gain new instructions, up to a max of 20. > Press the big PLAY ▶ button to automatically repeat the previous two actions until Current Gen reaches Generations. Press the Step or Evolve button to pause. Set Generations at 0 to play indefinitely. > Press the ✴ (new batch) button to start over with a new set of random algorithms. Tips: - Don't put the number of steps too low or the algorithms won't be able to optimize anything, but also not too high to reduce lag. - Same thing with the amount of algorithms, unless you have an insanely fast computer. - The best algorithm in the current batch and its score are kept track of under the lists. Current leaderboard for default parameters: | ______Algorithm______ | _Score_ | | 11122222333334444555 | 4424848 | | 11112222333334444555 | 4418475 | | 11122223233334444555 | 4409229 | | 11122223333324444555 | 4402506 | | 11122223333234444555 | 4402366 |
(2025-03-01) Huge Update! - Revamped the UI - More buttons with clearer instructions - New default generators - Better randomized generators - Improved the evolution process - Fixed some weird bugs that slipped in