hto-projects / autohack-idle

an incremental game for lazy coders
https://autohack-idle.onrender.com/
MIT License
2 stars 0 forks source link

Add First Hacking Opportunity: Collect All with a For Loop #19

Open josephmaxwellhyland opened 3 weeks ago

josephmaxwellhyland commented 3 weeks ago

The whole point of this game is to introduce programming concepts to players. Currently, though the theme is related to computer science, there is no actual educational aspect.

For the first foray into education, add a special "hacking" upgrade: A "Collect All" button. It will be up to the player to code this button. There should be a "lesson" presented to them if they want to learn a bit about for loops - this lesson could be a video, a text walkthrough, or an interactive experience. Ultimately, they should be able to write code that looks something like this:

for (bit in bits) {
  collect(bit);
}

The concept is much more important than the actual code, so this could be an opportunity for some drag and drop or fill-in-the-blank. The game design decisions can be discussed as a team.

josephmaxwellhyland commented 3 weeks ago

The button, once added, should have a cooldown period so the player cannot continue to press it over and over again.